require 'prime' MAX_N = 10000 def main n = gets.to_i dp = [false]*(MAX_N + 1) 2.upto(n) do |i| res = true Prime.each(i) do |p| if dp[i - p] res = false break end end dp[i] = res end ans = dp[n] ? 'Lose' : 'Win' end puts main()