#include using namespace std; using namespace chrono; #if __has_include() #include using namespace atcoder; #endif int main() { int64_t n, k; cin >> n >> k; int64_t ans = 0; for (int64_t x = (1LL << k); x <= (1LL << n); x += (1LL << k)) { ans++; } cout << ans << endl; return 0; }