count = int(input()) now = 0 def game(end, maxarg): if (end-1) % (1+maxarg) ==0: print('Lose') else: print('Win') while count > now: end,maxarg = map(int, input().split()) game(end, maxarg) now += 1