Given the values of bbb, ppp, and kkk, compute the value of bpmod kb^p \mod kbpmodk. Here, bbb, ppp, and k×kk \times kk×k are long integers.
Input the values of bbb, ppp, and kkk.
Output the value of bpmod kb^p \mod kbpmodk.
2 10 9
2^10 mod 9=7
Using your Hydro universal account