FASTPOW

2 5 1000
4 10 7
2 100000 1000
2 10000000000 1000
2 64 1000
	
2 100000 1000
	
2 10000000000 1000
2 100000 1000
1 5 10
2 10 1000
2 5 1000
4 10 7
4 14 15
10
2 10 1007
9999999 10000000000 1000
Three integers A B and C
576 4799 89
12345678 98765432 10007
12345678 98765431 10007
0 98765431 10007
100000000 100000000 99999
98765432 98765432 98765
128127388
878787977
1000000
28127388
78787977
100000
99999999
99999999
1000000
99999999
99999999
1000000
1
99999999 99999999 1000000
2 100000 100