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

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


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