def lscan; gets.split.map(&:to_i); end

str = gets.chomp

8.times do |i|
    rs = "^keyence$"
    r = Regexp.new(rs[0..i]+".*"+rs[(i+1)..-1])
    if r =~ str
        puts "YES"
        exit
    end
end
puts "NO"