#include using namespace std; typedef unsigned long long ull; typedef long long ll; int main(){ int n, k; cin >> n >> k; if(n>=k) cout << (1<<(n-k)) << endl; else cout << 0 << endl; return 0; }