s = gets.chomp
s2 = "keyence"
ans = s.include?(s2)
(s2.size-1).times do |i|
    s3 = s2[0..i]
    s4 = s2[(i + 1)...(s2.size)]
    i1 = s.index(s3)
    if !i1.nil?
        i2 = s.index(s4, i1 + s3.size)
        if !i2.nil?
            ans = true
            break
        end
    end
end
puts ans ? "YES" : "NO"