#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while(t--){ long long n; cin >> n; int cnt = 0; while(n != 1){ if(cnt % 2 == 0){ n = (n + 1) / 2; }else{ n = (n + 6) / 7; } cnt++; } if(cnt % 2 == 0){ cout << "sepa" << endl; }else{ cout << "ryota" << endl; } } }