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