let n, x, t =
    stdin.ReadLine().Split()
    |> Array.map int
    |> fun ary -> ary.[0], ary.[1], ary.[2]

let times =
    match n % x with
    | 0 -> n / x
    | int -> n / x + 1

printfn "%d" (times * t)
