require "prime" ss = Prime.each(10000).to_a ans = Array.new(10001) n=gets.to_i (10000+1).times do |d| if(d < 2) ans[d] = true elsif(d<4) ans[d] = false else f=0 ss.each do |pr| break if(pr > d) if(ans[d-pr] == false) ans[d] = true f=1 break end end ans[d]=false unless(f==1) end end puts ans[n]? "Win" : "Lose"