import Data.Ratio

readInts :: IO [Int]
readInts = map read . words <$> getLine

main :: IO ()
main = do
  [n,x,t] <- readInts
  print $ solve n x t

solve :: Int -> Int -> Int -> Int
solve n x t = ceiling (n % x) * t
