i,a,b;main(t){for(scanf("%d%d",&a,&b);!i||(t*200/i+1)/2-a|((i-t)*200/i+1)/2-b||!printf("%d",i);)t=(a*2+.99)*++i/200;}