main = interact $ show . solve . map (read :: String -> Double) . words solve :: [Double] -> Integer solve [a, b] = (floor (a * 100000.0 * b )) `div` 100000