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