a,b=map(int,input().split()) for i in range(1,101): for j in range(1,101): if round(100*i/(i+j))==a and round(100*j/(i+j))==b: print(i+j) break