For given integers m and n, compute mn (mod 1,000,000,007). Here, A (mod M) is the remainder when A is divided by M.
m n
Two integers m and n are given in a line.
Print mn (mod 1,000,000,007) in a line.
2 3
8
5 8
390625