For positive integers a and b, write the b-th power tower of a as a↑↑b. It is defined by
a↑↑1=a
a↑↑(k+1)=a(a↑↑k)
For example, 3↑↑2=33=27 and 3↑↑3=327=7625597484987.
Find the last 8 digits of a↑↑b.
The first line contains two positive integers a and b, separated by a space. (1≤a,b≤20000)
Print the last 8 digits of a↑↑b on one line.
If a↑↑b has 9 or more digits, print those last 8 digits exactly, including any zeros at the front of them. If a↑↑b has 8 or fewer digits, print the whole value without adding leading zeros.