s = raw_input()
ans = 'NO'
string = 'keyence'
for i in xrange(len(string)):
	part1 = string[:i+1]
	index1 = s.find(part1)
	if index1 == -1:
		continue
	part2 = string[i+1:]
	modified = string[index1 + 3:]
	if part2 in modified:
		ans = 'YES'
		break
print ans