Today Vasya found a great way to earn money. He offers his diary to Peter for rubles a day. There are days when Peter does not do well on an exam, and the results, of course, are recorded in the diary. To avoid upsetting his family, he rents Vasya's diary. After studying the basics of economics, Vasya decides to attract customers by announcing that every -th day of rental is completely free.
Peter rented the diary for days. Now Vasya is trying to figure out how many rubles he will receive as a result of this transaction.
Three positive integers , , and (n, m, p < 10001).
Print Vasya's profit.
Example 1