main :: IO ()
main = do
    [a,b] <- map read . words <$> getLine :: IO [Double]
    let res = floor (a / 0.08)
    print $ if (floor ((fromIntegral res :: Double) * 0.1)) == (floor b) then res else -1
