Power - Mod Power

  • + 0 comments

    just 4 lines

    x=int(input())
    y=int(input())
    m=int(input())
    print(pow(x,y),pow(x,y,m),sep="\n")