stringEnter = input()
target = "keyence"
counter = 0
targetCounter = 0
while(counter < len(stringEnter) and targetCounter < len(target)):
 if(stringEnter[counter] == target[targetCounter]):
  targetCounter += 1
 counter += 1
if(targetCounter == len(target)):
 print("YES");
else:
 print("NO");
