#include<bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin>>a>>b;
if(a+b) cout<<"water";
else if(a+b>=10&&a>b) cout<<"tree";
else if(a+b>=10&&a<b) cout<<"tea";
}
/**************************************************************
Problem: 1672
User: linmiaoling
Language: C++
Result: Wrong Answer
****************************************************************/