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; }
Keep in touch with Isaac Lozano Osorio!