A,B=map(int,raw_input().split()) a=[] for i in range(201): for j in range(201): t=i+j if t!=0: if round(100.0*i/t,0)==A and round(100.0*j/t,0)==B: a.append(t) print min(a)