#include #include using namespace std; int main() { int A, B, pa, pb; cin >> A >> B; for (int i = 1; i <= 200; i++) { for (int a = 0; a <= i; a++) { int b = i - a; pa = round(100.0 * a / i); pb = round(100.0 * b / i); if (pa == A && pb == B) { cout << i << endl; return 0; } } } return 0; }