n, k = map(int, input().split()) print(50 * n + (500 * n / 8 + 2 * k))