Power - Mod Power

  • + 0 comments
    n1, n2, n3 = int(input()), int(input()), int(input())
    
    print(f"{pow(n1, n2)}\n{pow(n1, n2, n3)}")