#include #include #include #include #include #include #include #include using namespace std; #define MAXV 1000000000 #define MOD 1000000007 using ll = long long; bool operator<(const pair& a, const pair& b) { if (a.first == b.first) { return a.second < b.second; } return a.first < b.first; } ll a[100010]; int main() { unsigned long long N, M; cin >> N >> M; cout << (unsigned long long)pow(M, N) << endl; int a; cin >> a; }