
def myAnswer(S:list) -> str:
   key = ["k","e","y","e","n","c","e"]
   now = key.pop(0)
   flag = False
   hantei = False
   ans = ""
   for n,s in enumerate(S):
      if(s == now):
         if(flag):
            hantei = True
         ans += s
         if(len(key) == 0):
            now = 0
         else:
            now = key.pop(0)
      elif(hantei):
         return "NO"
      else:
         flag = True
   if(ans == "keyence"):
      return "YES"
   else:
      return "NO"

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