S=input()
if ('k' in S) and ('eyence' in S):
  print('YES')
  exit()
if ('ke' in S) and ('yence' in S):
  print('YES')
  exit()
if ('key' in S) and ('ence' in S):
  print('YES')
  exit()
if ('keye' in S) and ('nce' in S):
  print('YES')
  exit()
if ('keyen' in S) and ('ce' in S):
  print('YES')
  exit()
if ('keyenc' in S) and ('e' in S):
  print('YES')
  exit()
print('NO')