a = [c for c in input()]
if "k" in a:
	del a[:a.index("k")+1]
	if "e" in a:
		del a[:a.index("e")+1]
		if "y" in a:
			del a[:a.index("y")+1]
			if "e" in a:
				del a[:a.index("e")+1]
				if "n" in a:
					del a[:a.index("n")+1]
					if "c" in a:
						del a[:a.index("c")+1]
						if "e" in a:
							print("YES")
						else:
							print("NO")
					else:
						print("NO")
				else:
					print("NO")
			else:
				print("NO")
		else:
			print("NO")
	else:
		print("NO")
else:
	print("NO")