local n = io.read("*n") local t = {} for i = 1, n do t[i] = 0 end local function getprimes(x) local primes = {} local allnums = {} for i = 1, x do allnums[i] = true end for i = 2, x do if(allnums[i]) then table.insert(primes, i) local lim = math.floor(x / i) for j = 2, lim do allnums[j * i] = false end end end return primes end local primes = getprimes(n) local function putprimesto(pos) for i = 1, #primes do local p = primes[i] if(n < p + pos) then break end t[pos + p] = 2 end end local needretry = true for i = 2, n do if(t[i] == 0) then t[i] = 1 putprimesto(i) end end print(t[n] == 1 and "Lose" or "Win")