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()
  S = S.replace("keyence", "A")
  if S == "A":
      print("YES")
      exit()
  elif S[0] == "A" and S[len(S) - 1] != "A":
      print("YES")
      exit()
  elif S[len(S) - 1] == "A":
      print("YES")
      exit()
  
  S1 = S.replace("K", "A")
  S1 = S1[::-1]
  S1 = S1.replace("ecneye", "B")
  S1 = S1[::-1]
  if S1[0] == "A" and S1[len(S1) - 1] == "B":
      print("YES")
      exit()
  S2 = S.replace("Ke", "A")
  S2 = S2[::-1]
  S2 = S2.replace("ecney", "B")
  S2 = S2[::-1]
  if S2[0] == "A" and S2[len(S2) - 1] == "B":
      print("YES")
      exit()
  S3 = S.replace("Key", "A")
  S3 = S3[::-1]
  S3 = S3.replace("ecne", "B")
  S3 = S3[::-1]
  if S3[0] == "A" and S3[len(S3) - 1] == "B":
      print("YES")
      exit()
  S4 = S.replace("Keye", "A")
  S4 = S4[::-1]
  S4 = S4.replace("ecn", "B")
  S4 = S4[::-1]
  if S4[0] == "A" and S4[len(S4) - 1] == "B":
      print("YES")
      exit()
  S5 = S.replace("Keyen", "A")
  S5 = S5[::-1]
  S5 = S5.replace("ec", "B")
  S5 = S5[::-1]
  if S5[0] == "A" and S5[len(S5) - 1] == "B":
      print("YES")
      exit()
  S6 = S.replace("Keyenc", "A")
  S6 = S6.replace("e", "B")
  if S6[0] == "A" and S6[len(S6) - 1] == "B":
      print("YES")
      exit()
  print("NO")
  
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"}]