#include #include #include std::vector V; int main() { int a,b; scanf("%d%d",&a,&b); while(b>1) { V.push_back(b); b = (b+1)/2; } V.push_back(1); std::reverse(V.begin(),V.end()); if(V.size()<=a) { long long int sum = 0; for(int i=0;i