s = gets.to_s.chomp "kadomatsu".each_char.with_index do |c, i| s.insert(i, c) if s[i] != c end puts s == "kadomatsu" ? "Yes" : "No"