4200: 计算a的b次方的个位数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:7 Solved:5

Description

输入a和b,求a的b次方的个位数是多少?


Input

正整数a和b

Output

个位数

Sample Input Copy

2 63

Sample Output Copy

8