import copy

S = input()
ja = 0

sremove = ""
S_tmp = ""

for i in range(len(S)):
    for j in range(len(S)- i):
        S_tmp = S

        sremove = S_tmp[i:]
        sremove = sremove[j:]

        S_tmp.replace(sremove, "")

        if S_tmp == "keyence":
            ja = 1
            break

if ja == 0:
    print("NO")

else:
    print("YES")