# -*- coding:utf-8 -*-
input_str = input()
target_lst = ['k','e','y','e','n','c','e']

i = 0
del_list = []
for elm in input_str:
  if elm in target_lst:
    target_lst.remove(elm)
    del_list.append(i)
  i+=1

if len(target_lst) !=  0:
  print('NO')
else:
  for i in del_list:
    if i == 0:
      continue
    else:
      if del_list[i] < del_list[i-1]:
        print('NO')
        exit()

  print('YES')   