S = list(input())
s1 = list("keyence")

x = 0
y = 0
z = 0
for i in range(len(S)):
  if x <= 6:
    if S[i] == s1[x]:
      x += 1
      z = 0
    elif z != 0:
      y += 1
      z = 1
  else:
    break


if y <= 1 and x != 0:
  print("YES")  
else:
  print("NO")