from sets import Set

s = raw_input().lower()
r_str = 'keyence'
k_split = list()
for i in xrange(len(r_str)):
	a = list()
	a.append(r_str[0 : i])
	a.append(r_str[i : ])
	k_split.append(a)

print_sig = False

for i in xrange(len(k_split)):
	single_split = k_split[i]
	f = s.find(single_split[0])
	b = s.find(single_split[1])
	if f != -1 and b != -1 and f < b:
		if f > 0 and b - f == 1 and b + len(single_split[1]) == len(s):
			print_sig = True
		if (f == 0) and b + len(single_split[1]) == len(s):
			print_sig = True
		if b + len(single_split[1]) == len(r_str):
			print_sig = True
		if print_sig == True:
			print 'YES'
			break

if print_sig == False:
	print 'NO'

