package yukicoder;
import java.util.*;
public class Main{
	public static void main(String[] args)throws Exception{
		new Main().solve();
	}
	void solve(){
		Scanner sc=new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		
		//A=100a/(a+b)(小数点は四捨五入)
		//B=100b/(a+b)
		//a+bを最小化
		//Yesと答えた人がAパーセント
		//Noと答えた人がBパーセント
		//
		//A+B=100のとき
		//a=A,b=Bとすると、
		//成り立つので上界は100
		//A+B=101のとき
		//四捨五入前は
		//AはA-0.5、BはB-0.5となっている。
		//このとき、a=2A-1,b=2B-1とすると、
		//なりたつ
		//よって、上界は200
		//
		
		for(int i=1;i<=200;i++){
			for(int j=0;j<=i;j++){
				double a=j;
				double b=i-j;
				if(A==(int)(100*a/(a+b)+0.5)&&B==(int)(100*b/(a+b)+0.5)){
					System.out.println((int)(a+b));
					return;
				}
			}
		}
		
	}
}