0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-26 11:20:15 +00:00
2020-10-07 19:55:45 +08:00

5 lines
117 B
Python

# R39260119
a = input().split()
print(a[0]+"^"+a[1]+" mod "+a[2]+"="+str(pow(int(a[0]), int(a[1]), int(a[2]))))