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