def main(): from sys import stdin readline = stdin.readline s = readline()[:-1] t = 'kadomatsu' st = set({t}) for i in range(len(t)): tmp = t[:i] + t[i+1:] st.add(tmp) print('Yes' if s in st else 'No') main()