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