s = input()
c = 0
for i in range(7):
  if 'keyence'[:i] in s and 'keyence'[i:] in s:
    if 'keyence'.index('keyence'[:i]) >= 'keyence'.index('keyence'[i:]):
      c += 1
      break
if c >= 1 :
  print('YES')
else:
  print('NO')