import re
S = input()

if re.search(r'k.*eyence', S) or \
   re.search(r'ke.*yence', S) or \
  re.search(r'key.*ence', S) or \
  re.search(r'keye.*nce', S) or \
  re.search(r'keyen.*ce', S) or \
  re.search(r'keyenc.*e', S) or \
  S == 'keyence':
    print('YES')
else:
  print('NO')