import sys
input = sys.stdin.readline
S = list(input())[: -1]
for l in range(len(S)):
  for mr in range(l, len(S)):
    for ml in range(mr, len(S)):
      for r in range(ml, len(S)):
        t = S[l: mr + 1] + S[ml: r + 1]
        if "".join(t) == "keyence":
          print("YES")
          exit(0)
print("NO")