#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==1&&b==2 ||a==2&&b==3 ||a==3&&b==1){
cout<<"win"<<endl;
}else{
if(a==b){
cout<<"tie"<<endl;
}else{
cout<<"lose"<<endl;
}
}
}
/**************************************************************
Problem: 1048
User: wuhanyu
Language: C
Result: Compile Error
****************************************************************/