A, B = map(int,input().split()) X = int((50*A)/(0.8 + 0.2*B)) ans = 50 * A + X print(ans)