#include using namespace std; int main() { int n, k; cin >> n >> k; n -= k; cout << (n >= 0 ? 1 << n : 0) << endl; return 0; }