Yet Another Multiple Problem

HDU - 4474