A Raised to the Power B
Compute A to the power B by repeated multiplication.
Input format
A single line with two integers A and B (0 <= A <= 10, 0 <= B <= 18).
Output format
Print A raised to the power B (A^B). Note A^0 = 1.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
2 10Expected output
1024Example 2
Input
5 0Expected output
1