s = raw_input()
string = 'keyence'
back = 0
front = 0
ptr = len(string)-1
for i in xrange(len(s)-1, -1, -1):
	if ptr < 0:
		break
	if s[i] == string[ptr]:
		back += 1
		ptr -= 1
	else:
		break
for i in xrange(len(s)):
	if i == len(string):
		break
	if s[i] == string[i]:
		front += 1
	else:
		break
if front + back >= len(string):
	print 'YES'
else:
	print 'NO'
