#include using namespace std; int main(){ unsigned long N, K; cin >> N >> K; cout << (1LL << (N - K)) << endl; }