import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A,B = map(int,read().split()) def to_precent(num,den): num *= 100 num = num + num + den den += den return num // den answer = 1000 for a in range(301): for b in range(301): if a+b == 0: continue if a+b >= answer: break if A == to_precent(a,a+b) and B == to_precent(b,a+b): answer = a + b print(answer)