<filename>basics/power.py
a = int(input())
b = int(input())
c = int(input())

print(str(pow(a,b)))
print(str(pow(a,b,c)))
<filename>basics/power.py
a = int(input())
b = int(input())
c = int(input())

print(str(pow(a,b)))
print(str(pow(a,b,c)))