import sys, re

P = r'(.*)k(.*)e(.*)y(.*)e(.*)n(.*)c(.*)e(.*)'

s = input().rstrip('\n')

m = re.match(P, s)

if m is not None:
  print([ x for x in m.groups() if x])
  if len([ x for x in m.groups() if x]) <= 1:
    print('YES')
    sys.exit()
print('NO')
