Problem3509--幂的末尾

3509: 幂的末尾

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

幂ab的末3位数是多少?

Input

两个正整数a,b。

1 ≤ a ≤ 100 . 1 ≤ b ≤ 10000

Output

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

Sample Input Copy

2 3

Sample Output Copy

008

Source/Category