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