Yes, the answer is 1. The right side of the equation is a Fourier series that sums to 0. Ignoring if you know what that is, you should be able to drudge through that and figure it out.
That leaves us with eulers identity, which makes x=1.
In retrospect maybe this was a silly little problem.