i_str = gets.chomp.to_s
if i_str == "keyence"
  puts "YES"
elsif i_str.length == 7
  puts "NO"
else
  e = i_str.length - 1
  len = i_str.length - 7
  ans = i_str.split("").map(&:to_s)
  if ans[len..e].join == "keyence" || ans[0..6].join == "keyence"
    puts "YES"
  else
    check = false
    7.times do |i|
      str = ans[0..i].join + ans[(i+len+1)..e].join
      if str == "keyence"
        check = true
        break
      end
    end
    if check
      puts "YES"
    else
      puts "NO"
    end
  end
end