require "prime" n = gets.to_i lose_num = [] (2..n).each do |i| win = false lose_num.each do |j| if Prime.instance.prime?(i - j) win = true break end end if ! win lose_num << i end end if lose_num.include?(n) puts "Lose" else puts "Win" end