j,a,b;main(i){for(scanf("%d%d",&a,&b);;i++)for(j=0;j-i;j++)if(a==(j*100+i/2)/i&b==((i-j)*100+i/2)/i)exit(!printf("%d",i));}