s = gets.chomp
array = s.split("")
str = "keyence"
answer = "NO"
p s[-7,7]
if s[0,7] == str
  answer = "YES"
end
if s[-7,7] == str
  answer = "YES"
end

for i in (0..5)
  if s[i] ==  str[i]
    if s[-(6-i),(6-i)] == str[i+1,6-i]
    answer ="YES"
  end
end
end
puts answer
