s = input()

if s.startswith('k') and s.startswith('eyence'):
  print('YES')
elif s.startswith('ke') and s.startswith('yence'):
  print('YES')
elif s.startswith('key') and s.startswith('ence'):
  print('YES')
elif s.startswith('keye') and s.startswith('nce'):
  print('YES')
elif s.startswith('keyen') and s.startswith('ce'):
  print('YES')
elif s.startswith('keyenc') and s.startswith('e'):
  print('YES')
else:
  print('NO')