A,B=map(int,input().split()) ANS=1<<60 def rou(x): k=int(x) if k+1-x<=x-k: return k+1 else:return k for a in range(220): for b in range(220): if a+b==0: continue if rou(100*a/(a+b))==A and rou(100*b/(a+b))==B: ANS=min(ANS,a+b) print(ANS)