favorite We need a little bit of your help to keep things running, click on this banner to learn more

Cost of call

Cost of call

Find the cost of a phone call in kopecks with duration of n seconds, if the connecting cost is a kop., the tariffication is per minute, that is the first second of each minute is charged to pay b kop.


Three non-negative integers a, b and n (0a, b99, 0n86400).


Print the cost of a phone call in kopecks.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5 10 120
Output example #1