#include using namespace std; #if __has_include("Today's/debug.cpp") #include "Today's/debug.cpp" #else #define debug(...) #define print_line #define debugc(...) #define cerr \ if (false) cerr #endif void solve() { long long N; cin >> N; //true:sepa,false:ryota map, bool> mp; vector num = {2, 3, 5, 7}; auto F = [&](auto&& F, long long now, int turn) -> bool { if (mp.count(make_pair(now, turn))) { return mp[make_pair(now, turn)]; } if (turn == 0) { if (now >= N) { return true; } bool res = false; for (int x : num) { res |= F(F, now * x, 1 - turn); } return mp[make_pair(now, turn)] = res; } else { if (now >= N) { return false; } bool res = false; for (int x : num) { res |= !F(F, now * x, 1 - turn); } return mp[make_pair(now, turn)] = !res; } }; cout << (F(F, 1, 0) ? "sepa\n" : "ryota\n"); } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; for (int i = 0; i < T; i++) { solve(); } }