#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, 0, -1, 0};
int dy[] = {0, 1, 0, -1};
const int N = 2e5 + 10, OO = 0x3f3f3f3f;
void _run() {
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  if (x1 != x2 && y1 != y2 && abs(x1 - x2) != abs(y1 - y2)) {
    cout << "-1\n";
    return;
  }
  int deltaX = abs(x2 - x1);
  int deltaY = abs(y2 - y1);
  if (x1 == x2)
    cout << x1 + deltaY << " " << y1 << " " << x1 + deltaY << " " << y2 << "\n";
  else if (y1 == y2)
    cout << x1 << " " << y1 + deltaX << " " << x2 << " " << y1 + deltaX << "\n";
  else
    cout << x1 << " " << y2 << " " << x2 << " " << y1 << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tc = 1;
  while (tc--) {
    _run();
  }
  return 0;
}
