Pagini recente » Cod sursa (job #312423) | Cod sursa (job #2270182) | Cod sursa (job #2935163) | Cod sursa (job #1605514) | Cod sursa (job #3293028)
#ifdef LOCAL
#include <bits/stdc++.h>
using namespace std;
ifstream fin("fantastice.in");
ofstream fout("fantastice.out");
#else
#include <bits/stdc++.h>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
#endif
const long long MOD= 1999999973;
int n, p;
long long logpow(int b, int e){
int ans=1;
while(e!=0){
if(e%2) ans*=b, ans%=MOD;
b*=b, b%=MOD;
e/=2;
}
return ans;
}
signed main()
{
fin>>n>>p;
fout<<logpow(n, p);
return 0;
}