S=input()
# print(S)
if S=="keyence":
	print("Yes")
	exit(0)
a="keyence"
if S[0:len(a)]==a:
	print("YES")
	exit(0)

# print(len(a))
for i in range(0,len(a)):
	# print(i)
	# print(S[0:i])
	# print(a[0:i])
	# print(S[len(S)+i-len(a):len(S)])
	# print(a[i:len(S)])
	
	if S[0:i]==a[0:i] and S[len(S)+i-len(a):len(S)]==a[i:len(S)]:
		print("YES")
		exit(0)
print("NO")
exit(0)
