#include using namespace std; using ll = long long; using vi = vector; using vll = vector; using vvi = vector>; using vvl = vector>; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll n, k; cin >> n >> k; if (n >= k) cout << (1LL << (n - k)) << endl; else cout << 0 << endl; return 0; }