import re

S=input()

if re.match('([a-z]*)keyence',S):
  print('YES')
elif re.match('k([a-z]*)eyence',S):
  print('YES')
elif re.match('ke([a-z]*)yence',S):
  print('YES')
elif re.match('key([a-z]*)ence',S):
  print('YES')
elif re.match('keye([a-z]*)nce',S):
  print('YES')
elif re.match('keyen([a-z]*)ce',S):
  print('YES')
elif re.match('keyenc([a-z]*)e',S):
  print('YES')
elif re.match('keyence([a-z]*)',S):
  print('YES')
else:
  print('NO')