require "prime" def f(n) dp = [true] * (n+1) (2..n).each_with_object([]){|i, primes| primes << i if i.prime? dp[i] = primes.any?{|pr| !dp[i - pr]} } dp[n] end N = gets.to_i puts f(N) ? :Win : :Lose