Obviously, i and -i are double poles, because
So, using the general formula for a pole of order n :
we easily get the residue of f at i (the one that will be useful for the computation) :
which is easy to compute.
Now, use the semicircle contour :
And keep the poles with positive imaginary part. So only i.