S = list(input())
T = list("keyence")
f = 0
b = 0
for i in range(len(S)):
  if S[i] != T[i]:
    f = i
    break
for i in range(len(S)):
  if S[-1*i] != T[-1*i]:
    b = -1*i+1
    break
if S[:f] + S[b:] == T:
  print("YES")
else:
  print("NO")