s=input() k='kadomatsu' idx=0 for x in k: if x==s[idx]: idx+=1 if idx==len(s): print('Yes') exit() print('No')