100 #ABC176A. [ABC176A] Takoyaki

[ABC176A] Takoyaki

Score : 100100 points

Problem Statement

Takahashi loves takoyaki - a ball-shaped snack.

With a takoyaki machine, he can make at most XX pieces of takoyaki at a time, taking TT minutes regardless of the number of pieces to make.

How long does it take to make NN takoyaki?

Constraints

  • 1N,X,T10001 \leq N,X,T \leq 1000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN XX TT

Output

Print an integer representing the minimum number of minutes needed to make NN pieces of takoyaki.

20 12 6
12

He can make 1212 pieces of takoyaki in the first 66 minutes and 88 more in the next 66 minutes, so he can make 2020 in a total of 1212 minutes.

Note that being able to make 1212 in 66 minutes does not mean he can make 22 in 11 minute.

1000 1 1000
1000000

It seems to take a long time to make this kind of takoyaki.