#include using namespace std; int main() { int n, k; cin >> n >> k; if (n < k) { puts("0"); } else { cout << (1<<(n-k)) << endl; } return 0; }