import re
s = input()
matches = []
matches.append(re.compile(r'\w+keyence').search(s))
matches.append(re.compile(r'k\w+eyence').search(s))
matches.append(re.compile(r'ke\w+yence').search(s))
matches.append(re.compile(r'key\w+ence').search(s))
matches.append(re.compile(r'keye\w+nce').search(s))
matches.append(re.compile(r'keyen\w+ce').search(s))
matches.append(re.compile(r'keyenc\w+e').search(s))
matches.append(re.compile(r'keyence\w+').search(s))

if matches.count(None) != len(matches):
	print('YES')
else:
	print('NO')