#include using namespace std; int main() { int l, n, ans; cin >> l; cin >> n; ans = (1 << (l - 3)) * n; cout << ans << endl; return 0; }