s = input() t = "kadomatsu" i = 0 for c in t: if c == s[i]: i += 1 if i == len(s): break if i == len(s): print("Yes") else: print("No")