import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np def make_prime(U): is_prime = np.zeros(U,np.bool) is_prime[2] = 1 is_prime[3::2] = 1 M = int(U**.5)+1 for p in range(3,M,2): if is_prime[p]: is_prime[p*p::p+p] = 0 return is_prime, is_prime.nonzero()[0] N = int(read()) U = 10000 is_prime, primes = make_prime(U) dp = np.zeros(U+1,np.bool) # 勝ちのとき1 dp[:2] = 1 for n in range(2,U+1): x = primes[primes <= n] dp[n] = 0 if np.all(dp[n-x]) else 1 answer = 'Win' if dp[N] else 'Lose' print(answer)