Max Gain in both bucket list