#include #include using namespace std; int main() { int N, K; cin >> N >> K; int x_max = pow(2, N), x = pow(2, K); if (x <= x_max) cout << x_max / x << endl; else cout << 0 << endl; }