S = input()
j = "keyence"
now = 0
out = 0
for i in range(len(S)):
  if S[i] == j[now]:
    now += 1
    if now == 7:
      break
  else:
    out += 1
    if out == 2:
      break
if now == 7:
  print("YES")
else:
  print("NO")
