input: def autocomplete(input_text):
      """
      Develop a Python program to create an autocomplete system that predicts words based on the input text.
      The program should generate word candidates, filter them based on some criteria, and then rank them to return the top 5 most likely words.
      
      >>> autocomplete("hel")
      ['hello', 'help', 'helm', 'helmet', 'helix']
      >>> autocomplete("pr")
      ['program', 'print', 'process', 'promise', 'project']
      """
output:     word_list = ["hello", "help", "helm", "helmet", "helix", "program", "print", "process", "promise", "project"]
      filtered_words = [word for word in word_list if word.startswith(input_text)]
      ranked_words = sorted(filtered_words, key=lambda word: (len(word), word))
      return ranked_words[:5]