a,b=gets.split(" ").map(&:to_i) (1..500).each{|y| (1..500).each{|x| if a==(100.0*x/(x+y)).round && b==(100.0*y/(x+y)).round p x+y exit end }}