#include using namespace std; using ll = long long; // --- 初期設定(入出力の高速化と小数15桁出力) --- struct Init { Init() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(15); } } init; // ------------------------------------------------ int main() { int A, B, D, R; cin >> A >> B >> D >> R; ll rabbit, turtle; ll W = 1 + (D + R - 1) / R; rabbit = A; turtle = B * W; if (rabbit > turtle) { cout << "rabbit" << endl; } else if (rabbit < turtle) { cout << "turtle" << endl; } else { ll n = W; while (n % 2 == 0) { n /= 2; } while (n % 5 == 0) { n /= 5; } if (n == 1) { cout << "tie" << endl; } else { cout << "rabbit" << endl; } } return 0; }