P = int(input()) for i in range(P): N, K = [int(i) for i in input().split()] while N >= K: N -= K + 1 if N == 1: print('Lose') else: print('Win')