import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[][] array = new int[3][2];
int sum = 0;
for(int x = 0;x < 3;x++){
for(int y = 0;y < 2;y++){
array[x][y] = sc.nextInt();
sum += array[x][y];
}
}
System.out.println(sum);
}
}