# coding: utf-8
import sys
input = sys.stdin.readline

S = input()
key_word = "keyence"

cnt = 0
i = 0
for j in range(len(key_word)):
    k = key_word[j]
    for i in range(len(S)):
        s = S[i]
        if s == k:
            i += 1
            cnt += 1
            break

if cnt==7:
    ans = "YES"
else:
    ans = "NO"

print(ans)