import java.util.Scanner; public class Main_yukicoder55 { 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 xx1 = x[(i + 1) % 3] - x[i]; int yy1 = y[(i + 1) % 3] - y[i]; int xx2 = x[(i + 2) % 3] - x[i]; int yy2 = y[(i + 2) % 3] - y[i]; if (Geom.dot(xx1, yy1, xx2, yy2) == 0 && Geom.sumofsquare(xx1, yy1) == Geom.sumofsquare(xx2, yy2)) { System.out.printf("%d %d\n", xx1 + xx2 + x[i], yy1 + yy2 + y[i]); sc.close(); return; } } System.out.println("-1"); sc.close(); } private static class Geom { static int dot(int xa, int ya, int xb, int yb) { return xa * xb + ya * yb; } static int sumofsquare(int xa, int ya) { return xa * xa + ya * ya; } } }