s = gets.chomp
flg = true
target = "keyence"
cntf,cntl = 0,0
7.times do |i|
  if s[i] == target[i]
    cntf += 1 if flg
  else 
    flg = false
  end
end
flg = true
7.times do |i|
  if s[-i-1] == target[-i-1]
    cntl += 1 if flg
  else 
    flg = false
  end
end
puts cntf + cntl >= 7 ? "YES" : "NO"