s = gets
len = s.length - 7
result = 'NO'

6.times.with_index do |i|
  if s.include?('keyence'[0..i]) && s.include?('keyence'[(i+1)..-1])
    if s.index('keyence'[0..i]) == 0 || (s[s.index('keyence'[(i+1)..-1])..-1].length - (6-i)) == 0
      if s[(s.index('keyence'[0..i]) + i + 1)..(s.index('keyence'[(i+1)..-1]) - 1)].length == len
        result = 'YES'
        break
      elsif s.include?('keyence')
        result = 'YES'
        break
      end
    end
  end
end

puts result
