import qualified Data.ByteString.Char8 as BS
import Control.Monad
import Data.Char
import Data.List


-- space delimited integers
getVals::IO [Int]
getVals = unfoldr (BS.readInt . BS.dropWhile isSpace) <$> BS.getLine

-- space delimited strings
getStrings::IO [String]
getStrings = (map BS.unpack . BS.words) <$> BS.getLine


solver:: Int -> Int -> Int -> Int
solver n x t = (t * (div n x)) +  (if (mod n x) /= 0 then t else 0)

main::IO()
main = do
    n:x:t:_<- getVals
    print $ solver n x t