s=list(input()) n=len(s) k=list("kadomatsu") for i in range(n): if s[i] in k: ind=k.index(s[i]) k=k[ind+1:] else: print("No") exit() print('Yes')