S = list(input())

key = list('keyence ')

index = 0
breakpoint = 0
is_prev_keyword = True
for c in S:
  if c != key[index]:
    if is_prev_keyword:
      breakpoint += 1
    is_prev_keyword = False

  else:
    is_prev_keyword = True
    index += 1

if index == len(key) - 1 and breakpoint <= 1:
  print('YES')
else:
  print('NO')