#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	1>2,2>3,3>1;
	if (a<b) cout<<"win"<<endl;
	else if (a>b)cout<<"lose"<<endl;
	else cout<<"tie"<<endl;	
	return 0;
}
/**************************************************************
	Problem: 1048
	User: xiaojingxuan
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/