import java.math.BigInteger; 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(); } for(int i=0;i<3;i++){ if( Math.pow(x[i]-x[(i+1)%3],2)+Math.pow(y[i]-y[(i+1)%3],2) ==Math.pow(x[i]-x[(i+2)%3],2)+Math.pow(y[i]-y[(i+2)%3],2) && Math.pow(x[i]-x[(i+1)%3],2)*2+Math.pow(y[i]-y[(i+1)%3],2)*2==Math.pow(x[(i+1)%3]-x[(i+2)%3],2)+Math.pow(y[(i+1)%3]-y[(i+2)%3],2)){ System.out.println( (x[(i+1)%3]-x[i]+x[(i+2)%3])+" "+(y[(i+1)%3]-y[i]+y[(i+2)%3]) ); return; } } System.out.println(-1); } }