Solution to the problem number 913A of Codeforces - 913A.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
	long long int a,b;
	cin>>a>>b;
	a=pow(2,a);
	cout<<b%a<<endl;
	return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!