str = gets.chomp.split(//)
mihon = ["k", "e", "y", "e", "n", "c", "e"]
count=0

str.each do |char|
    if char == mihon[count]
        count += 1
    end
end

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