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++){ int x1=x[i%3]; int y1=y[i%3]; int x2=x[(i+1)%3]; int y2=y[(i+1)%3]; int x3=x[(i+2)%3]; int y3=y[(i+2)%3]; if(Math.hypot(x1-x2,y1-y2)==Math.hypot(x2-x3,y2-y3)){ if((x1-x2)*(x2-x3)+(y1-y2)*(y2-y3)==0){ int ansx=x3+x1-x2; int ansy=y3+y1-y2; System.out.println(ansx+" "+ansy); return; } } } System.out.println(-1);} }