#include int main() { int N, K; scanf("%d%d", &N, &K); printf("%d\n", (N>=K) ? 1<<(N-K) : 0); return 0; }