#include<bits/stdc++.h> using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); int a,b;cin>>a>>b; int z=1e9; auto rdiv=[](int p,int q)->int{ return p/q + (2*(p%q) >= q); }; rep(x,1000){ rep(y,1000){ if(x==0&&y==0)continue; if(rdiv(100*x,x+y)==a&&rdiv(100*y,x+y)==b){ //cout<<x<<" "<<y<<" "<<rdiv(100*x,x+y)<<" "<<a<<" "<<rdiv(100*y,x+y)<<" "<<b<<" "<<z<<endl; z=min(z,x+y); } } } cout<<z<<endl; }