There is a set of rules to solve i to the power.
First off, you need to know this:
After the power of 4, it just starts to loop from 1. Knowing this, we can say the following:
Applying this, all we need to do is divide the power by 4 and determine the remainder.
So the answer is: