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