S=gets;
Sd="keyence"
pointer=0;
for i in 0...S.size do
    if Sd[pointer]==S[i] then 
        pointer+=1
        if pointer==7 then break end
    end
end
if pointer==7 then puts "YES" else puts "NO" end