#include #include #include using namespace atcoder; using mint = modint; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 2000000000 int main(){ int L,N; cin>>L>>N; long long ans = 1LL<<(L-3); ans *= N; cout<