A. Modular Exponentiation
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
The following problem is well-known: given integers n and m, calculate
where 2n = 2·2·...·2 (