Divide the exponent by 4 and use the remainder as the power on i.  Then simplify.