#include using namespace std; int main(){ int N, K; cin >> N >> K; if (N < K){ cout << 0 << endl; } else { cout << (1 << (N - K)) << endl; } }