for i in range(input()): n,k=map(int,raw_input().split()) print "Lose" if n%(k+1)==1 else "Win"