str = gets.chomp!
length = str.length
answer = false

if str[length-7..length]=="keyence" then answer = true end
#puts str[0]+str[6..length]
for i in 1..length-5
	if str[0..i-1]+str[i+(length-7)..length]=="keyence" then answer = true end
end

if answer == true then puts "YES" else puts "NO" end