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:
  isPTN = re.match(ptn, chars) != None;
  if isPTN == True:
    print("YES")
    break
  cnt = cnt + 1
if cnt == 8:
	print("NO")