function main(s) { const t = "kadomatsu"; let j = 0; for(let i=0; i<t.length; i++) { if(s[j] === t[i]) j++; } console.log( j === s.length ? "Yes" : "No"); } main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n")[0]);