S = input()

key = list("keyence")

k = 0
f = True
cnt = 0
for i in range(len(S)):
    if S[i] == key[k]:
        f = True
        k+=1
    else:
        if f :
            cnt+=1
        f = False
        

if cnt >1 or k != len(key):
    print("NO")
else:
    print("YES")