def main(): S = input() KADOMATSU = "kadomatsu" current_idx = 0 for letter in S: current_idx = KADOMATSU.find(letter, current_idx) if current_idx == -1: print("No") break current_idx += 1 else: print("Yes") if __name__ == "__main__": main()