#include int trunc(int a, int b) { return (a * 2 + b) / (b * 2); } void solve() { int a, b; std::cin >> a >> b; for (int s = 1;; ++s) { for (int x = 0; x <= s; ++x) { int y = s - x; if (trunc(x * 100, s) == a && trunc(y * 100, s) == b) { std::cout << s << std::endl; return; } } } } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }