n = gets.chomp.split("")
check = 0
count = 0
for i in 0..n.length-1
  if n[i] == "k" && count == 0
    count += 1
  elsif n[i] == "e" && count == 1
    count += 1
  elsif n[i] == "y" && count == 2
    count += 1
  elsif n[i] == "e" && count == 3
    count += 1
  elsif n[i] == "n" && count == 4
    count += 1
  elsif n[i] == "c" && count == 5
    count += 1
  elsif n[i] == "e" && count == 6
    count += 1
  elsif check == 0
    check = count
  elsif check != count
    check = 0
    count = 0
  end
  if count == 7
    puts "YES"
    exit
  end
end
puts "NO"
