import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int[] x = new int [3]; int[] y = new int [3]; for(int i=0; i<3; i++){ x[i]=koko.nextInt(); y[i]=koko.nextInt(); } int[] dis = new int[3]; int[] a = new int[3]; for(int i=0; i<2; i++){ a[i]=((x[i+1]-x[i])*(x[i+1]-x[i]))+((y[i+1]-y[i])*(y[i+1]-y[i])); dis[i]=a[i]; } a[2]=((x[0]-x[2])*(x[0]-x[2]))+((y[0]-y[2])*(y[0]-y[2])); dis[2]=a[2]; Arrays.sort(a); if(a[0]==a[1]&&a[0]+a[1]==a[2]){ int xa=0; int ya=0; if(dis[0]>dis[1]){ xa=x[0]+x[1]-x[2]; ya=y[0]+y[1]-y[2]; }else if(dis[0]==dis[1]){ xa=x[2]+x[0]-x[1]; ya=y[2]+y[0]-y[1]; }else{ xa=x[2]+x[1]-x[0]; ya=y[2]+y[1]-y[0]; } System.out.println(xa+" "+ya); }else{ System.out.println(-1); } } }