import re

S = input()

reg = ['k.*eyence', 'ke.*yence', 'key.*ence', 'keye.*nce', 'keyen.*ce', 'keyenc.*e']

flg = False
for r in reg:
  if re.search(r, S):
    flg = True

if flg:
  print("YES")
else:
  print("NO")