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