#include <bits/stdc++.h>
using namespace std;
long long powmod(long long a, long long b, long long mod) {
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  if (x1 == x2 || y1 == y2 || fabs(y2 - y1) == fabs(x2 - x1)) {
    if (x1 == x2 || y1 == y2) {
      if (x1 == x2) {
        cout << x1 + y2 - y1 << ' ' << y1 << ' ' << x1 + y2 - y1 << ' ' << y2;
      } else {
        cout << x1 << ' ' << y1 + x2 - x1 << ' ' << x2 << ' ' << y2 + x2 - x1;
      }
    } else {
      if (x1 < x2) {
        if (y1 < y2) {
          cout << min(x1, x2) << ' ' << max(y1, y2) << ' ' << max(x1, x2) << ' '
               << min(y1, y2);
        } else {
          cout << min(x1, x2) << ' ' << min(y1, y2) << ' ' << max(x1, x2) << ' '
               << max(y1, y2);
        }
      } else {
        if (y1 > y2) {
          cout << min(x1, x2) << ' ' << max(y1, y2) << ' ' << max(x1, x2) << ' '
               << min(y1, y2);
        } else {
          cout << min(x1, x2) << ' ' << min(y1, y2) << ' ' << max(x1, x2) << ' '
               << max(y1, y2);
        }
      }
    }
  } else {
    cout << -1;
  }
  return 0;
}
