n = int(input()) g = [list(map(int,input().split())) for i in range(n)] ans=["" for i in range(n)] def judge(n,k): if n > k: if (n-1)%(k+1)==0: return "Lose" else: return "Win" else: return "Win" for i,m in enumerate(g): ans[i] = judge(m[0],m[1]) for i in ans: print(i)