require 'prime' class Yukicoder def initialize n = gets.chomp.to_i result = Hash.new(false) 3.upto(n) do |i| Prime.each(i) do |j| if (i - j) > 1 && !result[i-j] result[i] = true break end end end if result[n] puts "Win" else puts "Lose" end end end Yukicoder.new