An input into a machine results in output according to the rule: if is odd, , if is even, . After repeatedly inputting the output back into the machine for a total of seven steps starting from , the final output is . Find the sum of all possible starting integers that lead to this outcome.