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=str(input())
  st=list(s)
  l=len(st)
  if st[0]="k" and st[1]=="e" and st[2]=="y" and st[3]=="e" st[4]=="n" and st[5]=="c" and st[6]=="e":
    print("YES")
  elif st[l-7]="k" and st[l-6]=="e" and st[l-5]=="y" and st[l-4]=="e" st[l-3]=="n" and st[l-2]=="c" and st[l-1]=="e":
    print("YES")
  elif st[0]="k" and st[l-6]=="e" and st[l-5]=="y" and st[l-4]=="e" st[l-3]=="n" and st[l-2]=="c" and st[l-1]=="e":
    print("YES")
  elif st[0]="k" and st[1]=="e" and st[l-5]=="y" and st[l-4]=="e" st[l-3]=="n" and st[l-2]=="c" and st[l-1]=="e":
    print("YES")
  elif st[0]="k" and st[1]=="e" and st[2]=="y" and st[l-4]=="e" st[l-3]=="n" and st[l-2]=="c" and st[l-1]=="e":
    print("YES")
  elif st[0]="k" and st[1]=="e" and st[2]=="y" and st[3]=="e" st[l-3]=="n" and st[l-2]=="c" and st[l-1]=="e":
    print("YES")
  elif st[0]="k" and st[1]=="e" and st[2]=="y" and st[3]=="e" st[4]=="n" and st[l-2]=="c" and st[l-1]=="e":
    print("YES")
  elif st[0]="k" and st[1]=="e" and st[2]=="y" and st[3]=="e" st[4]=="n" and st[5]=="c" and st[l-1]=="e":
    print("YES")
  else:
    ptint("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"}]