#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; int calc(int a, int b){ int ret = a/b; if(5*b <= 10*(a%b)) ret++; return ret; } int main(){ int A, B; cin >> A >> B; REP(num,1,1000){ REP(a,1,num+1){ int b = num-a; if(A == calc(100*a,num) && B == calc(100*b,num)){ cout << num << endl; return 0; } } } return 0; }