#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; ll n; unordered_map mp; int dfs(ll x){ if(x>=n) return 1; if(mp.count(x)) return mp.at(x); setst={0,1,2,3,4}; st.erase(dfs(x*2)); st.erase(dfs(x*3)); st.erase(dfs(x*5)); st.erase(dfs(x*7)); return mp[x]=*st.begin(); } int main(){ int t; cin>>t; rep(Ti,t){ cin>>n; mp.clear(); int rt=dfs(1); cout<<(rt?"sepa\n":"ryota\n"); } }