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