s = input() t = 'kadomatsu' if len(s) > len(t): print('No') exit() indx = -1 for i in range(len(s)): if s[i] not in t: print('No') exit() for j in range(indx+1, len(t)): if s[i] == t[j]: indx = i break else: print('No') exit() print('Yes')