#include class pos_t { public: int x, y; bool operator==(pos_t& rhs) { return (x==rhs.x && y==rhs.y); } pos_t operator+(pos_t& rhs) { pos_t ret; ret.x=x+rhs.x; ret.y=y+rhs.y; return ret; } pos_t operator-(pos_t& rhs) { pos_t ret; ret.x=x-rhs.x; ret.y=y-rhs.y; return ret; } void print(void) { printf("%d %d\n", x, y); } }; int main(void) { pos_t p[2], o, a, b; int i; while(scanf("%d%d", &o.x, &o.y)==2) { for(i=0;i<2;i++) { scanf("%d%d", &p[i].x, &p[i].y); p[i]=p[i]-o; } a=p[0]; b=p[1]; if((a.x==b.y && a.y==-b.x) || (a.x==-b.y && a.y==b.x)) { (a+b+o).print(); continue; } a=p[0]-p[1]; b=p[1]; if((a.x==b.y && a.y==-b.x) || (a.x==-b.y && a.y==b.x)) { (a+o).print(); continue; } a=p[1]-p[0]; b=p[0]; if((a.x==b.y && a.y==-b.x) || (a.x==-b.y && a.y==b.x)) { (a+o).print(); continue; } printf("-1\n"); } return 0; }