#!ruby -nrprime d=1,n=$_.to_i puts d[n.times{|i|d[i]||Prime.each(n){|p|d[p+i]=1}}]?:Win: :Lose