a = gets.to_s

b = a.match(/^keyence\w+/)
c = a.match(/^\w+keyence$/)
d = a.match(/^k\w+eyence$/)
e = a.match(/^ke\w+yence$/)
f = a.match(/^key\w+ence$/)
g = a.match(/^keye\w+nce$/)
h = a.match(/^keyen\w+ce$/)
i = a.match(/^keyenc\w+e$/)

case when b,c,d,e,f,g,h,i
 puts "YES"
else
 puts "NO"
end