#include using namespace std; using ll = long long; bool solve(int h, int w){ ll BW = 0; ll r = min(h, w); BW += w * r + r * (r - 1) / 2; BW -= h * r + r * (r + 1) / 2; return BW >= 0; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int T; cin >> T; while(T--){ int h, w; cin >> h >> w; cout << (solve(h, w) ? "sepa" : "ryota") << '\n'; } }