def myAnswer(S:list) -> str:
   key = ["k","e","y","e","n","c","e"]
   now = key.pop(0)
   flag = False
   total = 0
   ans = []
   for n,s in enumerate(S):
      # print(s,ans,total,flag)
      if(s ==now):
         if(flag):
            flag = False
            total += 1
         ans.append(s)
         if(len(key)==0):
            if(n != len(S) - 1):
               total +=1
               break
            else:
               break
         else:
            now = key.pop(0)
      else:
         flag = True
   # print(ans,total)
   if("".join(ans)== "keyence" and total <= 1):
      return "YES"
   else:
      return "NO"

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