def myAnswer(S:list) -> str:
   for i in range(len(S)-1):
      for j in range(i+1,len(S)):
         if("".join(S[:i]+S[j:]) == "keyence"):
            return "YES"
   return "NO"

def modelAnswer():
   return
def main():
   S = list(input())
   print(myAnswer(S[:]))
if __name__ == '__main__':
   main()