#include<bits/stdc++.h> using namespace std; int main() { int x,n,s; cin>>x>>n; int c=x+1; s=pow(c,n); cout<<s; return 0; }