import re
n = input()
if re.search(r'.*keyence.*',n) != None or re.search(r'.*k.*eyence.*',n) != None or re.search(r'.*ke.*yence.*',n) != None or re.search(r'.*key.*ence.*',n) != None or re.search(r'.*keye.*nce.*',n) != None or re.search(r'.*keyen.*ce.*',n) != None or re.search(r'.*keyenc.*e.*',n) != None:
  print("YES")
else:
  print("NO")