import sys input=sys.stdin.readline K=int(input()) Grundy=0 for i in range(K): a,p=map(int,input().split()) Grundy^=a%(p+1) if Grundy: print("Win") else: print("Lose")