#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  long long w, x, y, z;
  bool f = 1;
  if (a == c && f) {
    w = a + abs(d - b);
    x = b;
    y = a + abs(d - b);
    z = d;
    f = 0;
  }
  if (b == d && f) {
    w = a;
    x = b + abs(a - c);
    y = c;
    z = b + abs(a - c);
    f = 0;
  } else if (f) {
    if (abs(a - c) == abs(b - d)) {
      w = a;
      x = d;
      y = c;
      z = b;
      f = 0;
    } else {
      cout << -1 << endl;
      ;
    }
  }
  if (!f) cout << w << " " << x << " " << y << " " << z << endl;
  ;
}
