Ie/Informatyka/Potega


 * 1) include
 * 2) include

using namespace std;

int main {   int a, b, p, o;    cin >> a >> b >> p;    o=a; while(b>1) {       a=a*o; b--; } cout << a%p; system("pause"); return 0; }