s = input().rstrip()
target = list('keyence')
wrong = []
k = 0
e = 0
y = 0
n = 0
c = 0
for i, x in enumerate(s):
	if x == 'k': k += 1
	elif x == 'e': e += 1
	elif x == 'y': y += 1
	elif x == 'n': n += 1
	elif x == 'c': c += 1
	else: wrong.append(i)

judge = 0
for i in range(len(wrong) - 1):
	judge = max(wrong[i+1] - wrong[i], judge)

if k >= 1 and e >= 3 and y >= 1 and n >= 1 and c >= 1 and judge <= 1:
	print('YES')
else:
	print('NO')