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