s=input()
p="keyence"
j=0
cnt=0
x=0
for i in range(len(s)):
	if s[i]==p[j]:
		j+=1
		if cnt==1:
			x+=1
	else:
		cnt+=1
		if x==1:
			break
	if j==6:
		break
if j==6 and x==0:
	print("YES")
else:
	print("NO")