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