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