1 #include<iostream>
2 #include<cmath>
3 using namespace std;
4 int tot=0;
5 int main()
6 {
7 int m,w;
8 cin>>m>>w;
9 if(m+w<10)
10 {
11 cout<<"water";
12 return 0;
13 }
14 else
15 {
16 if(m>w)
17 {
18 cout<<"tree";
19 return 0;
20 }
21 else
22 {
23 cout<<"tea";
24 }
25 }
26 return 0;
27 }