N=input()
kye="keyence"
Nlen=len(N)
i=0
flag=0
while flag==0 and N[i]==kye[i]:
    if i==6:
        flag=1
    i=i+1

x=i
while flag==0:
    if N[x]!=kye[i]:
        
        x=x+1
    else:
        break
    if x==Nlen-1:
        flag=2
    

while flag==0 and N[x]==kye[i]:
    if i==6:
        flag=1
    i=i+1
    x=x+1

if flag==1:
    print("YES")
else:
    print("NO")