#include int main(void){ int n, k; scanf("%d%d", &n, &k); if(n < k){ printf("0\n"); return 0; } long a = 1 << n-k; printf("%ld\n", a); }