#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; int main() { int n,k; cin>>n>>k; ll ma = powl(2,n); ll t = powl(2,k); ll ans =0; for(ll i=t; i<=ma; i +=t){ ans++; } writeln(ans); }