S=list(input())
A=list("keyence")

import sys
while True:
	s = S.pop()
    if s == A[0]:
      A.pop()
    else:
      pass
    if len(A) == 0:
      print("YES")
      sys.exit()
    if len(S) == 0:
      print("NO")
      sys.exit()
    