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