#include #include using namespace std; typedef long long ll; const int INF = 1<<30; const ll INFLL = 1LL<<60; const ll MOD = 998244353; const double INFD = 1.0E10; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, -1, 0, 1}; //const int dx[8] = {1, 1, 0, -1, -1, -1, 0, 1}; //const int dy[8] = {0, 1, 1, 1, 0, -1, -1, -1}; using Pair = pair; using Graph = vector>; using mint = atcoder::modint998244353; void test(){ ll n = 100; int a = 3, b = 10; //cerr << (n - 2) % (a + b) << endl; vector v(n + 1, false); v[n] = true; for (int i = n - 1; i >= 1; i--){ //どっちかがfalseならtrue//勝てる int x = i + a; if (i + a < n && v[i + a] == false) v[i] = true; if (i + b < n && v[i + b] == false) v[i] = true; } for (int i = 1; i <= n; i++){ cerr << i << " : " << (v[i] ? "win" : "false") << endl; } } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(15); ll n, a, b; cin >> n >> a >> b; ll idx = (n - 2) % (a + b); //下からこれ bool win = true; if (idx >= b) win = true; else{ ll p = idx / a; win = p % 2; } cout << (win ? "sepa" : "ryota") << endl; return 0; }