#include using namespace std; int main() { long long n, k; cin >> n >> k; n -= k; if (n < 0) { cout << 0 << endl; } else { cout << (long long) pow(2, n) << endl; } return 0; }