// yukicoder 338 (http://yukicoder.me/problems/814) #include #include #define rep(i,a) for(int i=0;i<(a);++i) int A, B; int main() { scanf( "%d%d", &A, &B ); int ans = 200; rep( a, A+1 ) rep( b, B+1 ) { int s = a+b; if( A == int(100.0*a/s+0.5) && B == int(100.0*b/s+0.5) ) ans = std::min( ans, s ); } printf( "%d\n", ans ); return 0; }