Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

An edge computing environment needs at least x edge devices and at least y input peripherals. You may buy any non-negative number of individual edge devices, individual input peripherals, and bundles.

An individual edge device costs edgeCost, an individual input peripheral costs inputCost, and each bundle costs bundleCost and contains one edge device and one input peripheral. Extra devices and peripherals are allowed.

Test Cases
Input
Output
Expected