s = gets
d = "keyence"
frag = "NO"
if s[0..6] == d or s[s.length-7..s.length-1] == d
  frag = "YES"
end
6.times do |i|
	if s[0..i] == d[0..i] and s[s.length-(6-i)..s.length] == d[i+1..6]
    	frag = "YES"
	end
end
puts frag
