using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; class Magatro { static XY[] points = new XY[3]; static void Main() { int[] s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); for(int i = 0; i < 3; i++) { points[i] = new XY(s[i * 2], s[i * 2 + 1]); } for(int i = 0; i < 3; i++) { for(int j = 0; j < 3; j++) { for(int k = 0; k < 3; k++) { if (i == j || i == k || k == j) { continue; } XY ve1 = points[i] - points[j]; XY ve2 = points[j] - points[k]; if(ve1==new XY(-ve2.Y, ve2.X)) { XY ans = points[k] + ve1; Console.WriteLine("{0} {1}", ans.X, ans.Y); return; } } } } Console.WriteLine(-1); } } struct XY { public int X, Y; public XY(int x, int y) { X = x; Y = y; } static public XY operator +(XY a, XY b) { return new XY(a.X + b.X, a.Y + b.Y); } static public XY operator -(XY a, XY b) { return new XY(a.X - b.X, a.Y - b.Y); } static public bool operator ==(XY a,XY b) { return a.X == b.X && a.Y == b.Y; } static public bool operator !=(XY a,XY b) { return a.X != b.X || b.Y != a.Y; } }