#include using namespace std; int main(){ int n,m;cin>>n>>m; int z = 1; for(int i = 0; n-m > i; i++)z*=2; cout << z*(n-m+1) << endl; }