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