# -*- coding:utf-8 -*-
import re
org_str = input()
pattern = r".*k.*e.*y.*e.*n.*c.*e.*"

if org_str.count('e') != 3:
  print('NO')
  exit()
if len(org_str) < 7:
  print('NO')
  exit()

matchOB = re.match(pattern , org_str)
if matchOB:
  print('YES')
else:
  print('NO')