#include <bits/stdc++.h>
using namespace std;
template <class T>
bool ckmin(T& a, const T& b) {
  return b < a ? a = b, 1 : 0;
}
template <class T>
bool ckmax(T& a, const T& b) {
  return a < b ? a = b, 1 : 0;
}
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int MOD = 1000000007;
const char nl = '\n';
const int MX = 100001;
void solve() {
  int x1, x2, x3, x4, y1, y2, y3, y4;
  cin >> x1 >> y1 >> x2 >> y2;
  if ((x1 != x2 && y1 != y2) && abs(x1 - x2) != abs(y1 - y2)) {
    puts("-1");
  } else {
    if (x1 == x2) {
      int y = abs(y2 - y1);
      x3 = x1 + y;
      y3 = y1;
      x4 = x2 + y;
      y4 = y2;
    } else if (y1 == y2) {
      int x = abs(x2 - x1);
      x3 = x1;
      y3 = y1 + x;
      y4 = y2 + x;
      x4 = x2;
    } else if (x1 != x2 && y1 != y2) {
      x3 = x1;
      y3 = y2;
      x4 = x2;
      y4 = y1;
    }
    cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  }
}
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
