Codeforces 1B AC!!!

Function "pow" works different on my computer and on codeforces.