A = str(input())

for i in range(len(A)):
  for j in range(len(A)):
    b =A[:i]+A[len(A)-j:len(A)]
    print(b)
    if b == "keyence":
      print("YES")
      exit()
    elif i==len(A):
      print("NO")
      exit()
    else:
      continue