-10. Power

I'm a slow walker, but I never walk backwards.

題目來源:judgegirl from ntu prof. pangfeng Liu

Task Description

Write a program to compute the -th power of , where is an integer, and is a positive integer from to inclusively.

Input Format

There are two lines in the input. The first line has the integer . The second line has the integer .

Output Format

There are one line in the output. The line has the -th power of .

Sample Input

-2
2

Sample Output

4

Sample Input

-4
1

Sample Output

-4

Submit

Login

Testdata Set

Download Testdata