s=gets.tr('W','') p s.include?('GGRR')||s.include?('GRGR') ? :possible : :impossible