#!/usr/bin/env python3 import sys from functools import lru_cache @lru_cache(maxsize=None) def isWinning(N, K, n): for i in reversed(range(n + 1, min(N, n + K + 1))): if not isWinning(N, K, i): return True return False P = int(input()) for line in sys.stdin: N, K = map(int, line.split()) if isWinning(N, K, 0): print("Win") else: print("Lose")