Final 1000 - A+B Problem