import re
chars = input()
ptns = {'[a-x]*keyence','k[a-x]*eyence','ke[a-x]*yence','key[a-x]*ence','keye[a-x]*nce','keyen[a-x]*ce','keyenc[a-x]*e','keyence[a-x]*'}

cnt = 0
for ptn in ptns:
  cnt = cnt + 1
  isPTN = re.match(ptn, chars) != None;
  if isPTN == True:
    print("YES")
    break

if cnt == 8:
	print("NO")