#include int main() { char s[16]; scanf("%s", s); int i, j, n, m; for (n = 0; s[n] != '\0'; n++); char t[16] = "kadomatsu"; m = 9; t[m] = '\0'; for (i = j = 0; i < n; i++) { while (j < m && t[j] != s[i]) j++; if (j == m) { printf("No\n"); return 0; } j++; } printf("Yes\n"); return 0; }