import sys
input = sys.stdin.readline

# B - KEYENCE String
def is_keyence_string():
	i = 0

	for s in S:
		if s == key[i]:
			i += 1
			if i == len(key):
				return True

	return False


S = input()
key = 'keyence'

if is_keyence_string():
	print('YES')
else:
	print('NO')
