#include #define p(s) cout<<(s)<>n>>k; int ans=pow(2,n-k); if(k==1) ans-=n; p(ans); return 0; }