output_description: If S is a KEYENCE string, print `YES`; otherwise, print `NO`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: S=input()
  
  ans='NO'
  if 'keyence'in S:
      ans='YES'
  elif S.find('k')>=0 and S.find('k')<S.rfind('eyence'):
      ans='YES'
  elif S.find('ke')>=0 and S.find('ke')<S.rfind('yence'):
      ans='YES'
  elif S.find('key')>=0 and S.find('key')<S.rfind('ence'):
      ans='YES
  elif S.find('keye')>=0 and S.find('keye')<S.rfind('nce'):
      ans='YES'
  elif S.find('keyen')>=0 and S.find('keyen')<S.rfind('ce'):
      ans='YES'
  elif S.find('keyenc')>=0 and S.find('keyenc')<S.rfind('e'):
      ans='YES'
  
  print(ans)
problem_description: Statement
  
  A string is called a KEYENCE string when it can be changed to `keyence` by
  removing its contiguous substring (possibly empty) only once.
  
  Given a string S consisting of lowercase English letters, determine if S is a
  KEYENCE string.
samples: [{"input": "keyofscience", "output": "YES\n    \n\n`keyence` is an abbreviation of `key of science`.\n\n* * *"}, {"input": "mpyszsbznf", "output": "NO\n    \n\n* * *"}, {"input": "ashlfyha", "output": "NO\n    \n\n* * *"}, {"input": "keyence", "output": "YES"}]