a = list(input())
k = list("keyence")
count = 0
for i in a:
  if i ==  k[0]:
    if count == 1:
      k.pop(0)
      count = 2
    else:
      k.pop(0)
  else:
    if count == 0:
      count = 1
    if count == 2:
      print("NO")
      exit()

if len(k) == 0:
  print("YES")
else:
  print("NO")