def AorB(): AAA,BBB = map(int,raw_input().split(" ")) ans = [] for i in range(1, 200): for j in range(1, 200): if round(100.0*i/(i+j), 0) == AAA and round(100.0*j/(i+j), 0) == BBB: ans.append(i+j) print min(ans) AorB()