#include #include using namespace std; int main(void) { int s, n; double ans; cin >> s >> n; ans = n*pow(2, s - 3); cout << ans << endl; return 0; }