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