puts gets.chomp.chars.each_cons(9).any?{|e|e.uniq.size==9} ? :Yes : :No