A, B = map(int, input().split()) if A == 0 or B == 0: print(1) else: for a in range(1, 200): for b in range(1, 200): c = round(0.0001 + (100*a) / (a+b)) d = round(0.0001 + (100*b) / (a+b)) if A == c and B == d: print(a + b) exit()