$<.each{|e|s=e.tr('W','') p s.include?('GGRR')||s.include?('GRGR') ? :possible : :impossible}