I'd pay off the Z, probably take half of what's left and throw it towards the mortgage, then keep the rest in the bank.