KEY = "keyence"
a=gets.chomp

len = a.length
if len < 7
  puts "NO"
else
  if  a[0..6] ==KEY
    puts "YES"
  elsif a[len-7..len-1] == KEY
    puts "YES"
  else
    flg = false
    for i in 1..6
      if a[0..i-1] + a[i+len-7..len-1] == KEY
        flg = true
      end
    end
    if flg
      puts "YES"
    else
      puts "NO"
    end
  end
end