require 'prime' N = gets.to_i A = Array.new(N + 1) PNS = Prime.each(N).to_a for n in 2..N do flg = false PNS.each do |pn| break if n - pn <= 1 if A[n - pn] == false then #負け数字を相手に押し付けられる flg = true break; end end A[n] = flg end puts A[n] ? "Win" : "Lose"