function main()
S = readline()
target = "keyence"
index = 1
cut = 0
state = false
for s in S
  if s == target[index]
    index += 1
    state = true  
  elseif s != target[index] && state == true
    state = false  
  	cut += 1
  end
  if cut > 1
    println("NO")
    return 0
  end  
end
  println("YES")
end
main()
