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

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