import java.util.Scanner; public class Main55 { public static void main(String[] args) { Main55 p = new Main55(); } public Main55() { Scanner sc = new Scanner(System.in); int[] x = new int[3]; int[] y = new int[3]; for(int i=0;i<3;i++){ x[i] = sc.nextInt(); y[i] = sc.nextInt(); } solve(x, y); } public void solve(int[] x, int[] y) { String res = ""; for(int i=0;i<3;i++){ if((res = isOk(x[i], y[i], x[(i+1)%3], y[(i+1)%3], x[(i+2)%3], y[(i+2)%3])) != null){ System.out.println(res); return; } } System.out.println("-1"); } private String isOk(int x1, int y1, int x2, int y2, int x3, int y3){ int vx1 = x1-x2; int vx2 = x3-x2; int vy1 = y1-y2; int vy2 = y3-y2; if(vx1*vy1+vx2*vy2==0 && (vx1*vx1+vy1*vy1) == (vx2*vx2+vy2*vy2)) return (x2+vx1+vx2) + " " + (y2+vy1+vy2); else return null; } }