Last n digits of a^a^a^a
If you keep n<9 and a<10 it might be OK.
a
n