import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x1, y1, x2, y2, x3, y3; x1 = scanner.nextInt(); y1 = scanner.nextInt(); x2 = scanner.nextInt(); y2 = scanner.nextInt(); x3 = scanner.nextInt(); y3 = scanner.nextInt(); if (f(x1, y1, x2, y2, x3, y3) || f(x1, y1, x3, y3, x2, y2) || f(x2, y2, x1, y1, x3, y3) || f(x2, y2, x3, y3, x1, y1) || f(x3, y3, x2, y2, x1, y1) || f(x3, y3, x1, y1, x2, y2)) { } else { System.out.println(-1); } } private static boolean f(int x1, int y1, int x2, int y2, int x3, int y3) { int dx = x2 - x1; int dy = y2 - y1; if (y3 == y2 + dx && x3 == x2 - dy) { int x4 = x3 - dx; int y4 = y3 - dy; System.out.println(x4 + " " + y4); return true; } return false; } }