#include using namespace std; int main() { int N, K; cin >> N >> K; cout << ((N > K) ? 1 << N - K : 0) << "\n"; }