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 dp[i] = false primes.each do | p | break if p > i unless dp[i - p] # falseのところまで素数で辿り着けるならtrue. (=Win dp[i] = true break end end end end puts dp[N] ? 'Win' : 'Lose'