HDU 1002 A+B Problem II