import java.util.*; public class Main { static boolean square_check(int x[], int y[]) { int v[] = new int[6]; int count = 0; for (int i = 0; i < 4; i++) for (int j = i + 1; j < 4; j++) { int dx = x[i] - x[j], dy = y[i] - y[j]; v[count] = (dx * dx + dy * dy); count++; } Arrays.sort(v); int l = v[0]; if (l == 0) return false; return v[0] == l && v[1] == l && v[2] == l && v[3] == l && v[4] == l * 2 && v[5] == l * 2; } public static void main(String[] args) { Scanner sc=new Scanner(System.in); int x[]=new int[4]; int y[]=new int[4]; for(int i=0;i<3;i++){ x[i]=sc.nextInt(); y[i]=sc.nextInt(); } for(int i=-300;i<=300;i++){ for(int j=-300;j<=300;j++){ x[3]=i; y[3]=j; if(square_check(x,y)){ System.out.println(i+" "+j); return; } } } System.out.println(-1); }}