#include <iostream> #include <fstream> #include <vector> #include <cstring> #include <string> #include <algorithm> #include <iomanip> #include <cmath> 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 = 0; i < 1000; i++) { for(int j = 0; j < 1000; j++) { if(i + j == 0) continue; if(round(i * 100.0 / (i + j)) == A && round(j * 100.0 / (i + j)) == B) { ans = min(ans, i + j); } } } cout << ans << endl; }