Power - Mod Power

  • + 1 comment

    a, b, m=map(int, [input() for _ in range(3)]) print(pow(a,b)) print(pow(a,b,m))