Power - Mod Power

  • + 0 comments

    a=int(input()) b=int(input()) m=int(input())

    c=pow(a,b) print(c) d=(c%m) print(d)