Have you washed your hands yet?
Limits: 2 sec., 256 MiB
This statement was translated automatically from Ukrainian.
The terrifying Burdockvirus is raging all over the planet. As of today, it has managed to infect \(a\) people.
Scientists know that the situation has stabilized, and from now on the virus will infect exactly \(b\) people every day. What will be the total number of infected people in \(k\) days?
Input
The first and only line contains three integers — \(a\), \(b\), and \(k\).
Output
In a single line, output a single integer — the total number of infected people in \(k\) days.
Constraints
\(1 \le a, b, k \le 1000\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 4 7 4 | 32 |
Notes
After the first day the number of infected will be \(4+7=11\), after the second — \(11+7=18\), after the third — \(18+7=25\), and after the fourth — \(25+7=32\).
Source: Обласна олімпіада 2020
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|