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