Power - Mod Power

  • + 0 comments

    a=int(input()) b=int(input()) m=int(input()) print(f"{pow(a,b)}\n{pow(a,b,m)}")