#!/Users/takahiro.kida/git/atcorder/venv/bin/python

import numpy
import scipy

from collections import defaultdict
from pprint import pprint

S = input()
ANS = "keyence"

i = 0
started_delete = False
deleted = False
ans = False
j = 0

for s in S:
    j += 1
    if s == ANS[i]:
        if started_delete:
            started_delete = False
        if i == len(ANS) - 1:
            if not deleted or len(S) == j:
                ans = True
            break
        i += 1;
        continue
    if started_delete:
        continue
    if not deleted:
        started_delete = True
        deleted = True
        continue

if ans:
    print("YES")
else:
    print("NO")
