from re import fullmatch
S = input()
_s = "keyence"
flag = False
for i in range(len(_s)):
    if fullmatch(".*" + _s[:i] + ".*" + _s[i:] + ".*", S):
        flag = True
print("YES") if flag else print("NO")
