#include #include using namespace std; using ll = long long; #define rep(i, s, t) for (ll i = s; i < (ll)(t); i++) template bool chmin(T &x, T y) { return x > y ? (x = y, true) : false; } template bool chmax(T &x, T y) { return x < y ? (x = y, true) : false; } struct io_setup { io_setup() { ios::sync_with_stdio(false); std::cin.tie(nullptr); cout << fixed << setprecision(15); } } io_setup; using mint=atcoder::modint998244353; int main(){ ll n,k; cin>>n>>k; string s="yuusaan"; k--; if(n>k){ cout<<"y\n"; return 0; } if(n>26){ int x=-1; rep(i,1,27){ ll tmp=(1LL<<(i*2))*2-1+n-i; if(tmp>k){ x=i; break; } } k-=(n-x); n=x; } while(n>1){ ll tmp=(1LL<<((n-1)*2))*2-1; if(k==0){ cout<<"y\n"; return 0; } k--; if(k