#include using namespace std; main(){ int x[4],y[4]; cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2]; for(int i = 0;i < 3;i++){ int i2 = (i+1)%3,i3 = (i+2)%3; if(abs(x[i2]-x[i]) + abs(y[i2]-y[i]) == abs(x[i3]-x[i]) + abs(y[i3]-y[i])){ cout << x[i3]+x[i2]-x[i] << " " << y[i3]+y[i2]-y[i] << endl; return 0; } } cout << -1 << endl; }