#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include #include using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);i++) using mint = atcoder::modint998244353; #include using namespace __gnu_pbds; ll n; gp_hash_table mp; int dfs(ll x){ if(x>=n) return 1; auto itr=mp.find(x); if(itr!=mp.end()) return itr->second; vectorv={0,0,0,0,0}; v[dfs(x*2)]++; v[dfs(x*3)]++; v[dfs(x*5)]++; v[dfs(x*7)]++; rep(i,5){ if(!v[i]){ return mp[x]=i; } } assert(1); return -1; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin>>t; rep(Ti,t){ cin>>n; mp.clear(); cout<<(dfs(1)?"sepa\n":"ryota\n"); } }