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