for i in range(int(input())): n,k=map(int,input().split()) dp=[0]*n c=0 for i in range(n): x=c=k:c-=dp[i-k] print("LWoisne"[dp[-1]::2])