import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Point p1 = new Point(sc.nextInt(), sc.nextInt()); Point p2 = new Point(sc.nextInt(), sc.nextInt()); Point p3 = new Point(sc.nextInt(), sc.nextInt()); int d1 = p2.getD(p3); int d2 = p3.getD(p1); int d3 = p1.getD(p2); Point p4; if (d1 == d2 && d1 * 2 == d3) { p4 = p3.getAnother(p1, p2); } else if (d2 == d3 && d2 * 2 == d1) { p4 = p1.getAnother(p2, p3); } else if (d3 == d1 && d3 * 2 == d2) { p4 = p2.getAnother(p3, p1); } else { System.out.println(-1); return; } System.out.println(p4); } static class Point { int x; int y; public Point(int x, int y) { this.x = x; this.y = y; } public int getD(Point another) { return (x - another.x) * (x - another.x) + (y - another.y) * (y - another.y); } public Point getAnother(Point p1, Point p2) { return new Point(p1.x + p2.x - x, p1.y + p2.y - y); } public String toString() { return x + " " + y; } } }