# include using namespace std; typedef long long ll; // # define int long long # define lc u << 1 # define rc u << 1 | 1 # define fi first # define se second int A, B; int getround (double x) { return x > 0 ? x + 0.5 : x - 0.5; } signed main () { // freopen ("poll.in", "r", stdin); freopen ("poll.out", "w", stdout); scanf ("%d%d", &A, &B); int ans = 1e9; for (int a = 1; a <= 1000; a ++ ) { for (int b = 1; b <= 1000; b ++ ) { int t = (a + b); if (getround (100.0 * a / t) == A && getround (100.0 * b / t) == B) ans = min (ans, t); } } printf ("%d\n", ans); return 0; }