S=input()
sk="keyence"
N=len(S)
Nsk=len(sk)

k=0
ans="N0"
for i in range(N):
    lca=0
    for j in range(min(Nsk,N-i)):
        if S[i+j]==sk[j]:
            lca+=1
    if lca==Nsk:
        ans="YES"
    if lca>=1:
        for j in range(i+lca,N):
            if S[j:j+Nsk-lca]==sk[lca:]:
                ans="YES"
                break
            
print(ans)
            


