Pagini recente » razvanuzum | Cod sursa (job #302091) | Cod sursa (job #3298466) | Cod sursa (job #3137777) | Cod sursa (job #3298631)
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
const int MOD = 1999999973;
long long pow (long long x, long long exp) {
if (exp == 0) return 1;
long long a = 1;
if (exp % 2) a *= x;
long long aux = pow(x, exp / 2);
return (aux * aux * a) % MOD;
}
int main()
{
long long n, p;
fin >> n >> p;
fout << (1LL * pow(n, p)) % MOD;
return 0;
}