ls=input()
i = 1
if (ls[:7] == 'keyence') or ls[-7:] == 'keyence':
  print('YES')
else:
  ls1 = ls[:4]
  ls2 = ls[-4:]
  if (ls1 == 'keye' and ls2[1:] =='nce') or (ls1[:3] == 'key' and ls2 == 'ence'):
    print('YES')
  else:
    print('NO')