import re
S = input()
st = ''
ptnl = re.compile(r'k|ke|key|keye|keyen|keyenc|keyence')
ptnr = re.compile(r'eyence|yence|ence|nce|ce|e| ')
for i in range(len(S)):
  ml = ptnl.search(S[:i])
  mr = ptnr.search(S[i:])
  if(ml and mr):
    print('YES')
    break
else:
  print('NO')