def round(x): x = int(10*x) if x%10>=5: x += 10 return x//10 A,B = map(int,input().split()) ans = 5000 for a in range(1000+1): for b in range(1000+1): if a+b==0:continue if round(100*a/(a+b))==A and round(100*b/(a+b))==B: ans = min(ans,a+b) print(ans)