#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 L = 1 + (D + R - 1)/ R; rabbit = A; turtle = B * L; if(rabbit > turtle){ cout << "rabbit" << endl; }else if(rabbit < turtle){ cout << "turtle" << endl; }else{ cout << "tie" << endl; } return 0; }