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