#include using namespace std; int main() { int a, b; scanf("%d%d", &a, &b); int n = 100, m = 100; for (int i = 0; i < 101; i++) { if (i > n + m) break; for (int j = 0; j < 101; j++) { if (i + j > n + m) break; if (round(100.0 * i / (i + j)) == a && round(100.0 * j / (i + j)) == b) { n = i; m = j; break; } } } cout << n + m << endl; return 0; }