#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ long long H,W; cin >> H >> W; long long n = min(H,W); long long b = n*(n-1)/2,w = n*(n+1)/2; if(H < W) b += (W-H)*H; else w += (H-W)*W; if(b < w) cout << "ryota\n"; else cout << "sepa\n"; } }