s = input()
result = 'NO'
k = 'keyence'
for i in range(0, len(k)):
	k1 = k[:i]
	p1 = s.find(k1)
	if p1 != -1:
		if i == len(k)-1:
			result = 'YES'
			break
		else:
			k2 = k[i:]
			if s[len(s)-len(k2):] == k2:
				result = 'YES'
				break
print(result)
