s=input()
l='keyence'
x=0
n=len(s)
f=0
i=0
while(i<n):
    if(l[x]==s[i]):
        x+=1
    else:
        f+=1
        j=i
        while(j<n):
            if(l[x]==s[j]):
                x+=1
                i=j
                break
            else:
                j+=1
    i+=1
if(f<=1 and x==7):
    print("YES")
else:
    print('NO')
