p = int(input()) for i in range(p): n,k = map(int,raw_input().split()) if n <= k : print 'Win' continue print 'Lose' if (n-1)%(k+1) == 0 else 'Win'