#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int a, b; cin >> a >> b; int ans = 1e9; for (int x = 0; x < 1000; ++x) { for (int y = 0; y < 1000; ++y) { if (x + y == 0) continue; int p = roundl((long double) (100 * x) / (x + y)); int q = roundl((long double) (100 * y) / (x + y)); if (p == a && q == b) ans = min(ans, x + y); } } cout << ans << endl; return 0; }