s=input()
if s.count('keyence') or (s.count('k') and s.count('eyence')) or (s.count('ke') and s.count('yence')) or (s.count('key') and s.count('ence')) or (s.count('keye') and s.count('nce')) or (s.count('keyen') and s.count('ce')) or (s.count('keyenc') and s.count('e')):
  print('YES')
else:
  print('NO')
