In this HackerRank Power - Mode Power in python problem solution You are given three integers: a, b, and m. Print two lines. On the first line, print the result of pow(a,b). On the second line, print the result of pow(a,b,m).

HackerRank Power - Mod Power in python problem solution

HackerRank Power - Mod Power in python problem solution

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

a =  int(raw_input())
b=  int(raw_input())
m= int(raw_input())

print(a**b)
print(pow(a,b,m))