Easy. I would pay off all my debts (including my mortgage) and then put whatever
is left into an emergency fund. At that point it would free up a lot of my current income to be diverted to various investments as opposed to paying off debts and going into emergency savings.