def AorB(): AAA,BBB = map(int,raw_input().split(" ")) ans = [] for i in range(0, 300): for j in range(0, 300): if i+j== 0: continue 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()