import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); char[] s = sc.next().toCharArray(); sc.close(); char[] t = "kadomatsu".toCharArray(); int j = 0; for (int i = 0; i < t.length; i++) { if (j == s.length) { break; } if (s[j] == t[i]) { j++; } } if (j == s.length) { System.out.println("Yes"); } else { System.out.println("No"); } } }