s = gets.chomp w = [*'a'..'z'] s.each_char.with_index do |c, idx| next if idx.even? && w.member?(c) || idx.odd? && c == ' ' puts :No exit end puts :Yes