#define _USE_MATH_DEFINES #include using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int n, k; cin >> n >> k; if (k == 0) { cout << (int) pow(2, n) << endl; return 0; } int t = pow(2, k); int ans = 0; int v = pow(2, n); while ((ans + 1) * t <= v) ans++; cout << ans << endl; return 0; }