#B2075. 幂的末尾

幂的末尾

Description

aba^b 的末 33 位数是多少?

Input Format

两个正整数 aabb1a1001 \le a \le 1001b100001 \le b \le 10000

Output Format

从高位到低位输出幂的末三位数字,中间无分隔符。若幂本身不足三位,在前面补零。

2 3
008
7 2011
743