A+B for Input-Output Practice (IV)

HDU - 1092