s = input()
import re
ans=[]
ans.append(re.match("k.*eyence",s))
ans.append(re.match("ke.*yence",s))
ans.append(re.match("key.*ence",s))
ans.append(re.match("keye.*nce",s))
ans.append(re.match("keyen.*ce",s))
ans.append(re.match("keyenc.*e",s))
c = sum(x!=None for x in ans)
if c > 0:
  print("YES")
else:
  print("NO")