#include using namespace std; int N,K; int main () { cin >> N >> K; long long int x = N - K; cout << ( x < 0 ? 0 :(1 << x) )<< endl; return 0; }