Details
You have N kg of a metal alloy. From this, you produce blanks, each weighing K kg. From each blank, you then machine parts, each weighing M kg, producing as many parts as possible from each blank. Any leftover material from the blanks is recycled back into the production process, along with any leftover material from making the blanks. If the recycled material is sufficient to produce at least one more blank, the process repeats: new blanks are made, and parts are machined from them.
Write a program to calculate the total number of parts that can be produced from the initial N kg of alloy using this method.
Input
The input consists of three natural numbers: N, K, and M, each not exceeding 200.
Output
Output a single number — the total number of parts that can be produced using this method.