import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int s[] = new int[5];
			s[0] = 500;
			s[1] = 1000;
			s[2] = 1500;
			s[3] = 2000;
			s[4] = 2500;
			int m[] = new int[5];
			int w[] = new int[5];
			for (int i = 0; i < 5; i++)
				m[i] = in.nextInt();
			for (int i = 0; i < 5; i++)
				w[i] = in.nextInt();
			int hs = in.nextInt();
			int hu = in.nextInt();
			
			int score = 0;
			
			for(int i = 0; i < 5; i++) {
				score += Math.max(30*s[i]/100, (250-m[i])*s[i]/250 - 50*w[i]);
			}
			
			score += 100 * hs;
			score -= 50 * hu;
			System.out.println(score);
		}

	}

}
