import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
HashMap<Integer, Integer> x_map = new HashMap<Integer, Integer>();
HashMap<Integer, Integer> y_map = new HashMap<Integer, Integer>();
int x = 0;
int y = 0;
for(int i=0;i<3;i++){
x = scan.nextInt();
y = scan.nextInt();
x_map.put(x, x_map.getOrDefault(x, 0)+1);
y_map.put(y, y_map.getOrDefault(y, 0)-1);
}
for(Integer i : x_map.keySet()){
if(x_map.get(i)==1){
x = i;
}
}
for(Integer i : y_map.keySet()){
if(y_map.get(i)==-1){
y = i;
}
}
System.out.println(x+" "+y);
scan.close();
}
}
2) PYTHON
x_map = [0 for _ in range(3)]
y_map = [0 for _ in range(3)]
for i in range(3):
x_map[i], y_map[i] = map(int, input().split())
for i in range(3):
if x_map.count(x_map[i]) == 1:
x = x_map[i]
if y_map.count(y_map[i]) == 1:
y = y_map[i]
print(x, y, end=" ")