Suppose I want to find $2^{2^{403}} \equiv x$ (mod $23$). Now I know by Fermat's Little Theorem that $2^{22} \equiv 1 \space (\mod 23)$ and I know how to show that $2^{403} \equiv 8 \space (\mod 22)$. But I don't know how to put these two together to solve the congruence, or if I'm missing some crucial simplification step or theorem. I can't even use WolframAlpha because the number is too big.
My question is: How do you solve $2^{2^{403}} \equiv x$ (mod $23$)?