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