a,b = map(int,input().split());

if b - a != 2:
    if a < b:
        print('win')
    elif a == b:
        print('tie')
    elif a - b == 2:
        print('win')
    else :
        print('lose')
else:
    print('lose')



/**************************************************************
	Problem: 1048
	User: admin
	Language: Python
	Result: Accepted
	Time:93 ms
	Memory:34480 kb
****************************************************************/