S = input()

target = list("keyence")
dif_flag = True
count = 0
tmp = target.pop(0)
for i in S:
  if tmp != i:
    if dif_flag:
      continue
    else:        
      dif_flag = True
      count += 1  
    if count >= 2:
      print("NO")
      break
    continue
  if len(target) == 0:
    print("YES")
    break
  dif_flag = False
  tmp = target.pop(0)
else:
  print("NO")
  