If \( f(z) \) is analytic inside and on a simple closed curve \( C \) except at a finite number of points \( a, b, c, \dots \) inside \( C \), at which the residues are \( \text{Res}(f, a), \text{Res}(f, b), \text{Res}(f, c), \dots \), then \[ \oint_C f(z) \, dz = 2\pi i (\text{Res}(f, a) + \text{Res}(f, b) + \dots). \]