from itertools import ifilter, islice def gen_odd(): n = 3 while True: yield n n += 2 def iprimes(): yield 2 g = gen_odd() while True: prime = g.next() s_prime = prime * prime ps = [] while s_prime != prime: yield prime ps.append(prime) prime = g.next() pred = lambda x, ps = ps: all(x % p for p in ps) g = ifilter(pred, g) n=input() primes=[] for i in iprimes(): if i > n: break primes.append(i) w=[False]*(n+1) for c in range(2,n+1): if w[c]==False: for i in [j for j in primes if j+c<=n]: w[i+c]=True print "Win" if w[c] else "Lose"