defmodule Main do
  def main do
    [n, x, t | _] = IO.gets("")
                    |> String.trim()
                    |> String.split(" ")
                    |> Enum.map(&String.to_integer/1)

    IO.puts(div(n+x-1, x) * t)
  end

end
