s = input()
key = ""

for i in range(7):
  if i == 0:
    key = s[len(s)-7]
    if key == "keyence":
      break
  if 0 < i < 6:
    key = s[:i] + s[len(s) - 7 +i:]
    if key == "keyence":
      break
  if i == 6:
    key = s[:7]
    if key == "keyence":
      break
      
if key == "keyence":
  print("YES")
else:
  print("NO")