#include int main(void) { int n,k; std::cin >> n >> k; std::cout << (1 << (n - k)) << std::endl; return 0; }