A, B = map(int, input().split()) answer = 10 ** 15 for a in range(0, 101): for b in range(0, 101): if a == b == 0: continue if A == int(100 * a / (a + b) + 0.5) and B == int(100 * b / (a + b) + 0.5): if a + b < answer: answer = a + b print(answer)