import re
org_str = input()
#pattern = r"[^k]*?k[^e]*?e[^y]*?y[^e]*?e[^n]*?n[^c]*?c[^e]*?e[^e]*?"
pattern = r"[a-z]*?k[a-z]*?e[a-z]*?y[a-z]*?e[a-z]*?n[a-z]*?c[a-z]*?e[a-z]*?"

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