#include<bits/stdc++.h>
using namespace std;
string s1,s2;
int main(){
cin>>s1>>s2;
if(s1=="elephant"&&s2=="tiger"||s1=="tiger"&&s2=="cat"||s1=="cat"&&s2=="mouse"||s1=="mouse"&&s2=="elephant"){
cout<<"win"<<endl;
}else if(s2=="elephant"&&s1=="tiger"||s2=="tiger"&&s1=="cat"||s2=="cat"&&s1=="mouse"||s2=="mouse"&&s1=="elephant"){
cout<<"lose"<<endl;
}else{
cout<<"tie"<<endl;
}
return 0;
}

京公网安备 11010502036488号