s = gets.chomp

double = 0
keyence = "keyence".split("")
i = 0

s.split("").each do |c|
  if c == keyence[i]
    if double == 1
      double = 2
    end
    i += 1
  else
    if double == 2
      puts "NO"
      exit
    end
    double = 1
  end
end

if i == 7
  puts "YES"
else
  puts "NO"
end
