Power - Mod Power

  • + 0 comments
    [a, b, m] = [int(input()) for _ in range(3)]
    print(pow(a,b), pow(a,b,m), sep="\n")