s = STDIN.gets.chomp.chars
target = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
num = 0
successive = false
index = 0

s.each do |char|
  if char == target[index]
    index += 1
    successive = false
  elsif successive == false
    num += 1
    successive = true
  end
end

if index == 7 && num <= 1
  puts 'YES'
else
  puts 'NO'
end
