require 'prime' N = gets.to_i primes = Prime.each(10000).to_a dp = Array.new(N + 1) 0.upto(N) do | i | case i when 0, 1 dp[i] = true when 2, 3 dp[i] = false else result = 0 primes.each do | p | break if p > i unless dp[i - p] dp[i] = true result = 1 break end end dp[i] = false unless result == 1 end end puts dp[N] ? 'Win' : 'Lose'