def solve(A, B): for total in range(1, 1000): for a in range(0, total + 1): b = total - a AA = int(100*a/total+0.5) BB = int(100*b/total+0.5) if AA == A and BB == B: return total raise RuntimeError('something is wrong') A, B = map(int, input().split()) print(solve(A, B))