#include using namespace std; using ll = long long; constexpr ll mod = 998244353; ll t,n; vector a = {2,3,5,7}; bool solve(ll now){ if(now > n) return false; for(int i = 0; i < 4; i++){ if(!solve(now * a[i])) return 1; } return 0; } int main(){ cin >> t; while(t--){ cin >> n; cout << (solve(1) ? "ryota" : "sepa") << endl; } }