A+B for Input-Output Practice (VIII)

HDU - 1096