import java.util.*; public class Main { public static void main(String[] args) { 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(); } int c=check(x,y,0); if(c==-1){ System.out.println(-1); }else{ int x4=point(x,c); int y4=point(y,c); System.out.println(x4+" "+y4); } } static int check(int[]x, int[]y,int z){ if(z==3){ return -1; } int ax = x[z%3]-x[(z+1)%3]; int bx = x[(z+2)%3]-x[(z+1)%3]; int cx = x[z%3]-x[(z+2)%3]; int ay = y[z%3]-y[(z+1)%3]; int by = y[(z+2)%3]-y[(z+1)%3]; int cy = y[z%3]-y[(z+2)%3]; int d1 = ax*ax+ay*ay; int d2 = bx*bx+by*by; int d3 = cx*cx+cy*cy; if(d1==d2&&d1+d2==d3){ return z; }else{ return check(x,y,z+1); } } static int point(int[]A,int B){ int n = A[(B+2)%3]-A[(B+1)%3]; int r = A[B%3]+n; return r; } }