t = "kadomatsu" tlen = len(t) i = 0 for c in input(): while i < tlen and t[i] != c: i += 1 if i == tlen: print('No') break i += 1 else: print('Yes')