#a, b = gets.split.map(&:to_i)
s = gets.chomp
n = s.size

for l in 0..n-1
    for r in l..n
        t = ''
        t += s[0..l-1] if l-1 >= 0
        t += s[r..-1] if r <= n-1
        #p t
        if  t == 'keyence'
            puts 'YES'
            exit
        end
    end
end

puts 'NO'
