import java.util.Scanner; public class Yukicoder55 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] x = new int[4]; int[] y = new int[4]; int[][] pat = {{0, 1, 2}, {1, 0, 2}, {2, 0, 1}}; 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[pat[i][1]] - x[pat[i][0]], y[pat[i][1]] - y[pat[i][0]]) == Math.hypot(x[pat[i][2]] - x[pat[i][0]], y[pat[i][2]] - y[pat[i][0]])) { x[3] = x[pat[i][1]] + (x[pat[i][2]] - x[pat[i][0]]); y[3] = y[pat[i][1]] + (y[pat[i][2]] - y[pat[i][0]]); System.out.println(x[3] + " " + y[3]); return; } } System.out.println("-1"); } }