for _ in '1'*int(input()):N,K=map(int,input().split());print('LWoisne'[~-N%-~K>0::2])