#include "bits/stdc++.h" using namespace std; int main() { long long N, K; cin >> N >> K; printf("%.0f\n", (N >= K) * pow(2, (N - K))); }