
if __name__ == '__main__':
    m = [int(x) for x in raw_input().split()]
    w = [int(x) for x in raw_input().split()]
    h = [int(x) for x in raw_input().split()]

    score = 0
    for i, (mi, wi) in enumerate(zip(m, w)):
        x = (i + 1) * 500
        # print x, mi, wi
        score += max(0.3*x, (1 - mi/250.0)*x - 50*wi)

    score += 100*h[0]
    score -= 50*h[1]
    print int(score)
