require 'prime' n = gets.to_i dp = Array.new(n + 1, false) primes = Prime.each(n).to_a 2.upto(n) do |i| primes.each do |p| break if i-p <= 1 if dp[i-p] == false dp[i] = true break end end end puts dp[n] ? 'Win' : 'Lose'