#include<bits/stdc++.h> using namespace std; int n,m; int main(){ cin>>m>>n; cout<<(1<<n)-2<<endl; return 0; }