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