input: def sort_words_by_length_and_alphabet(input_string: str) -> str:
      """ Sort words in a given string by their length in decreasing alphabetical order.
      >>> sort_words_by_length_and_alphabet("This is the string which is to be sorted")
      "which sorted the This string to is be"
      """
output:     words = input_string.split()
      words.sort(key=lambda x: (-len(x), x))
      return ' '.join(words)