#include #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) for(int i = (n) - 1; (i) >= 0; --i) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD LL(1e9 + 7) #define INF 1000000 using namespace std; typedef long long LL; typedef vector VI; typedef pair PI; double f(int x, int y) { return (double)x * 100 / (double)(x + y); } int d(double x) { return x >= (int)x + 0.5 ? ceil(x) : floor(x); } int main() { int a, b; cin >> a >> b; FOR(i, 1, 101) { FOR(j, 1, 101) { int x = d(f(i, j)); int y = d(f(j, i)); if (a == x && b == y) { cout << i + j << endl; return 0; } } } return 0; }