a, b = map(int, input().split(" ")) ans = 50 * a + (250 * a) // (4 + b) print("{:d}".format(ans))