main = do [a, b] <- getLine >>= return . map read . words print $ minimum [floor (x + y) | x <- [0..200], y <- [0..200], x + y >= 1, floor ((100 * x) / (x + y) + 0.5) == a, floor ((100 * y) / (x + y) + 0.5) == b]