import re

S=input()

if 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')
else:
  print('NO')