p = input() for x in range(p): a,b = map(int, raw_input().split()) a -= 1 if (a % (b + 1) == 0): print "Lose" else: print "Win"