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