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