#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	int a, b;
	cin >> a >> b;
	for(int i = 0; i <= 1000; i++) {
		for(int j = 0; j <= 1000; j++) {
			int x = round(100 * 1.0 * i / (1.0 * (i + j)));
			int y = round(100 * 1.0 * j / (1.0 * (i + j)));
			if(x == a && y == b) {
				cout << i + j << endl;
				return 0;
			}
		}
	}
	return 0;	
}