Power - Mod Power

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