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