#include #include #include #include #include #include #include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int A, B; cin >> A >> B; int ans = 1000000; for(int i = 1; i < 1000; i++) { for(int j = 1; j < 1000; j++) { if(round(i * 100.0 / (i + j)) == A && round(j * 100.0 / (i + j)) == B) { ans = min(ans, i + j); } } } cout << ans << endl; }