#include using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); int t; cin >> t; while (t--) { ll h, w; cin >> h >> w; cout << ((h + w) % 2 ? "sepa" : "ryota") << endl; } return 0; }