s=io.read()
keyence="keyence"
iskeyence=false
for i=0,7 do
    x=keyence:sub(1,i).."(%l*)"..keyence:sub(i+1,7)
    y=s:match(x)
    if y and s:gsub(y,"",1):match("%l+")=="keyence" then
        iskeyence=true
    end
end
if iskeyence then
    print("YES")
else
    print("NO")
end