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