A,B = map(int,raw_input().split()) ans = 201 for a in xrange(101): for b in xrange(101): if a + b == 0: continue _A = int(round(a * 100. / (a + b))) _B = int(round(b * 100. / (a + b))) if A == _A and B == _B: ans = min(a+b,ans) print ans