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