import re

S = input()

R = [
    ".*keyence",
    "k.*eyence",
    "ke.*yence",
    "key.*ence",
    "keye.*nce",
    "keyen.*ce",
    "keyenc.*e",
    "keyence.*",
]

for ri in R:
    if re.match(ri, S):
        print("YES")
        exit(0)
print("NO")
