import re
s=input()
p1='.*?keyence'
p2='k.*?eyence'
p3='ke.*?yence'
p4='key.*?ence'
p5='keye.*?nce'
p6='keyen.*?ce'
p7='keyenc.*?e'
p8='keyence.*?'
p9='keyence'
patterns=[p1,p2,p3,p4,p5,p6,p7,p8,p9]
ans=False
for pat in patterns:
  ans=bool(ans or re.match(pat,s))
print('YES' if ans else 'NO')