#include "bits/stdc++.h" using namespace std; int main() { int N, K; cin >> N >> K; cout << (N >= K) * pow(2, (N - K)) << endl; }