#include using namespace std; typedef long long ll; typedef vector vl; typedef long double ld; typedef vector vd; typedef bool bl; typedef vector vb; typedef unordered_map> graph; const ll e5 = 1 << 20; const ll mod = 998244353; const ll e3 = 1 << 13; const ll INF = 1ll << 60; ll n,k; int main(){ cin >> n >> k; ll x = 2; ll y = 2; for(ll i = 0;i < n;i++){ x *= 2; } for(ll i = 0;i < k;i++){ y *= 2; } cout << x/y << endl; }