Hey so I have this problem

I know the formula for computing the coefficients but I'm not sure how I should be splitting up the integrals here. I know the length of the interval should be 2pi so would I end up having two integrals, one from -pi to 0 then another pi to 0 because it is a piecewise function?