#include int main() { int x; scanf("%d", &x); int y; scanf("%d", &y); for(int t = 1; t <= 200; ++t) { for(int a = 0; a <= t; ++a) { int b = t - a; if( (200 * a + (a + b)) / (2 * (a + b)) == x and (200 * b + (a + b)) / (2 * (a + b)) == y ) { printf("%d\n", t); return 0; } } } return 0; }