Given three integers a,b,ma, b, ma,b,m, compute the value of ab mod ma^b \bmod mabmodm.
One line containing three integers a,b,ma, b, ma,b,m.
A single integer representing the value of ab mod ma^b \bmod mabmodm.
2 100 1007
169
For all test cases, 1≤a,b,m≤1091 \le a, b, m \le 10^91≤a,b,m≤109.
Using your Hydro universal account