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