P = int(raw_input()) for i in range(0, P): N, K = map(int, raw_input().split()) if N % (K+1) == 1: print 'Lose' else: print 'Win'