s = gets().chomp
keyence_string = "keyence"

def continuously_matched_index(s1, s2)
  for i in 0..(s1.size - 1) do
    if(s1[i] != s2[i]) then
      return (i - 1)
    end
  end

  return (s1.size - 1)
end

first_continuously_matched_index = continuously_matched_index(keyence_string, s)
if first_continuously_matched_index == 6 then
  puts "YES"
else
  rest_of_keyence_string = keyence_string.slice((first_continuously_matched_index + 1)..6)
  if s.reverse.start_with?(rest_of_keyence_string.reverse) then
    puts "YES"
  else
   puts "NO"
  end
end

# chomp忘れててハマっていた...
