a, b = map(int, input().split()) ans = [] for i in range(1, 201): for j in range(i+1): if a == (j * 100 + i // 2) // i and b == ((i - j) * 100 + i // 2) // i: ans.append(i) break print(ans[0])