x,y=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*i/t)==x and round(100*j/t)==y: a.append(t) print min(a)