#yuki1367 s=input() i=0 for c in s: f='kadomatsu'.find(c,i) if f==-1: print('No') break i=f+1 else: print('Yes')