S = input() T = "kadomatsu" n = len(T) tp = 0 for s in S: while tp < n and T[tp] != s: tp += 1 if tp == n: print("No") exit() tp += 1 print("Yes")