a, b = gets.split.map(&:to_i) ans = nil for x in 0..100 do for y in 0..100 do next if x == 0 || y == 0 t1 = ((100 * x).to_f / (x + y)).round t2 = ((100 * y).to_f / (x + y)).round next unless t1 == a next unless t2 == b ans = x + y if !ans || x + y < ans end end puts ans