T = "kadomatsu" # Tの部分文字列であればよい S = input() cur = 0 for s in S: for t in range(cur, len(T)): if s == T[t]: cur = t + 1 break else: print("No") break else: print("Yes")