package yukicoder; import java.util.Arrays; import java.util.Scanner; public class N338 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int[] a=new int[2];a[0]=sc.nextInt();a[1]=sc.nextInt(); double ans=2; int end=0; if((a[0]==100&&a[1]==0)||(a[0]==0&&a[1]==100)){ans=1;} else if(a[0]+a[1]==0){ans=0;} else if(a[0]==a[1]){} else { Arrays.sort(a); while(true) { for(int i=1;i<=ans/2;i++) { if(a[0]==Math.round(100.0*((double)i)/ans)&&a[1]==Math.round(100.0*(ans-((double)i))/ans)) { end=1; break; } } if(end==1){break;} ans++; } } System.out.println(Math.round(ans)); } }