A,B=map(int,input().split()) ans=10**10 for a in range(1000): for b in range(1000): if round(100*a/(a+b))==A and round(100*b/(a+b))==B: ans=min(ans,a+b) print(ans)