N, K = map(int, input().split()) F = 50 * N + (250 * N) // (K + 4) print(F)