a=int(input()) for i in range(0,a): b=list(map(int,input().split(" "))) if (b[0]-1)%(b[1]+1)==0: print("Lose") else: print("Win")