import java.util.*;
class LabProgram {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int length = s.nextInt();
int[][] list = new int[2][length];
int total=0;
for(int i=0;i<2;i++) {
for(int j=0;j<length;j++) {
list[i][j] = s.nextInt();
}
}
for(int i=0;i<length;i++) {
total+=(list[0][i])*(list[1][i]);
}
System.out.println("Total:"+total);
}
}