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