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