#include using namespace std; #define rep(i, a) for (int i = 0; i < (a); i++) #define rep2(i, a, b) for (int i = (a); i < (b); i++) #define repr(i, a) for (int i = (a) - 1; i >= 0; i--) #define repr2(i, a, b) for (int i = (b) - 1; i >= (a); i--) template bool chmin(T1 &a, T2 b) { return b < a && (a = b, true); } template bool chmax(T1 &a, T2 b) { return a < b && (a = b, true); } typedef long long ll; int main() { int A, B; cin >> A >> B; int ans = 1e9; rep(a, 1000) rep(b, 1000) if (a + b > 0) { if (round(100.0 * a / (a + b)) == A && round(100.0 * b / (a + b)) == B) { chmin(ans, a + b); } } cout << ans << endl; return 0; }