A, B = map(int, input().split()) for i in range(1, 101): for j in range(i + 1): a = int(100 * j / i + 0.5) b = int(100 * (i - j) / i + 0.5) if a == A and b == B: print(i) exit()