import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x1 = sc.nextInt(); int y1 = sc.nextInt(); int x2 = sc.nextInt(); int y2 = sc.nextInt(); int x3 = sc.nextInt(); int y3 = sc.nextInt(); for (int i = 0; i < 3; i++) { if ((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) == (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3)) { if ((x1 - x2) * (x2 - x3) + (y1 - y2) * (y2 - y3) == 0) { int x4 = x3 + x1 - x2; int y4 = y3 + y1 - y2; System.out.println(x4 + " " + y4); return; } } } System.out.println(-1); } }