P = int(input()) N, K = [], [] for i in range(P): te, mp = map(int, input().split()) N.append(te), K.append(mp) N = list(map(lambda x:x-1, N)) for i in range(P): if N[i] % (K[i] * 2 - 1) > 0 and N[i] % (K[i] * 2 - 1) <= K[i]: print('Win') else: print('Lose')