#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (a == c) {
    int dist = abs(b - d);
    cout << a + dist << ' ' << b << ' ' << a + dist << ' ' << d << '\n';
  } else if (b == d) {
    int dist = abs(a - c);
    cout << a << ' ' << b + dist << ' ' << c << ' ' << d + dist << '\n';
  } else {
    int x = max(a, c) - min(a, c), y = max(b, d) - min(b, d);
    if (x != y) {
      cout << -1 << '\n';
    } else {
      if (b < d) {
        cout << a << ' ' << b + x << ' ' << c << ' ' << d - x << '\n';
      } else {
        cout << a << ' ' << b - x << ' ' << c << ' ' << d + x << '\n';
      }
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
}
