<filename>HackerRank/Problem Solving/Power - Mod Power.py
# Enter your code here. Read input from STDIN. Print output to STDOUT
a,b,c = int(input()), int(input()), int(input())
print(pow(a,b),pow(a,b,c),sep="\n")

<filename>HackerRank/Problem Solving/Power - Mod Power.py
# Enter your code here. Read input from STDIN. Print output to STDOUT
a,b,c = int(input()), int(input()), int(input())
print(pow(a,b),pow(a,b,c),sep="\n")

# Enter your code here. Read input from STDIN. Print output to STDOUT