Partial Lot Subsidy

You buy product in fixed lots, but your customer only wants to buy a partial lot. We could raise their unit price to subsidize all the extra parts that will never be sold.

Input: