S = gets.chomp
key = "keyence"
ok_flag = false

if /^keyence/ =~ S || /keyence$/ =~ S then
  ok_flag = true
else
  6.times do |i|
    a = key[0,i+1]
    b = key[i+1,6]
    #puts "i=#{i} a=#{a} b=#{b}"
    apos = S.index(a)
    bpos = S.index(b)
    if apos!=nil && bpos!=nil && apos < bpos then
      #puts "YES"
      ok_flag = true
      break
    end
  end
end

if ok_flag then
  puts "YES"
else
  puts "NO"
end
