A, B = map(int, input().split()) N = 500 * A / (8 + 2 * B) print(50 * A + int(N))