Problem A. Integers Exhibition

HDU - 6332