#include <bits/stdc++.h>
using namespace std;
  
int main() {
    int boys, girls;
    cin >> boys >> girls;
    int total = boys + girls;
  
    if (total < 10) {
        cout << "water";
    } else if (total >= 10 && boys > girls) {
        cout << "tree";
    } else {
        cout << "tea";
    }
}    
/**************************************************************
	Problem: 1672
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:15 ms
	Memory:2072 kb
****************************************************************/