题解 | 斗兽棋
斗兽棋
https://www.nowcoder.com/practice/0b5afb815f6848d9a7f9c1b0ce514b95
n,m=input().split()
if (n=='elephant'and m=='tiger') or (n=='tiger'and m=='cat') or (n=='cat'and m=='mouse') or(n=='mouse'and m=='elephant'):
print('win')
elif (m=='elephant'and n=='tiger') or (m=='tiger'and n=='cat') or (m=='cat'and n=='mouse') or(m=='mouse'and n=='elephant'):
print('lose')
else:
print('tie')

