s = input()
ans = "NO"

keyword = "keyence"
for i in range(1, len(keyword)):
    if keyword[:i] in s and keyword[i:] in s:
        s_replaced = s.replace(keyword[:i], "*", 1).replace(keyword[i:], "*", 1)
        splited = s_replaced.split("*")
        while "" in splited:
            splited.remove("")
        if len(splited) <= 1:
            ans = "YES"

print(ans)
