A,B=map(int,raw_input().split()) t=[] for i in range(1000): for j in range(1000): if i+j!=0: t+=[[int(i*100./(i+j)+0.5),int(j*100./(i+j)+0.5),i+j]] print min(i[2]for i in t if i[0]==A and i[1]==B)