using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var s = ReadLine(); var t = "kadomatsu"; var pos = 0; for (var i = 0; i < s.Length; ++i) { while (pos < t.Length && s[i] != t[pos]) ++pos; if (pos >= t.Length) { WriteLine("No"); return; } } WriteLine("Yes"); } }