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