max profit three