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