a,b = map(int,input().split()) if a-b == -2 or 1: print("lost") elif a-b == -1 or 2: print("won") else: print("drew")