Power - Mod Power

  • + 0 comments
    a, b, m = int(input()), int(input()), int(input())
    print(a ** b, pow(a, b, m), sep='\n')