#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  std::ios::sync_with_stdio(false);
  int x1, y1, x2, y2, temp;
  bool ans = false;
  cin >> x1 >> y1 >> x2 >> y2;
  if (x1 == x2) {
    ans = true;
    temp = max(y1, y2) - min(y1, y2);
    cout << temp + x1 << " " << min(y1, y2) << " " << temp + x1 << " "
         << max(y1, y2);
  } else if (y1 == y2) {
    ans = true;
    temp = max(x1, x2) - min(x1, x2);
    cout << min(x1, x2) << " " << temp + y1 << " " << max(x1, x2) << " "
         << temp + y1;
  } else if (x1 == y1 && x2 == y2) {
    ans = true;
    cout << x1 << " " << x2 << " " << x2 << " " << x1;
  } else {
    if (abs(max(x1, x2) - min(x1, x2)) == abs(max(y1, y2) - min(y1, y2))) {
      ans = true;
      cout << x1 << " " << y2 << " " << x2 << " " << y1;
    }
  }
  if (!ans) cout << -1;
  return 0;
}
