#include <bits/stdc++.h>
using namespace std;
void initialize() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
}
int main() {
  initialize();
  long long x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  if (x1 == x2) {
    int len = abs(y2 - y1);
    int newx = x1 + len;
    cout << newx << " " << y1 << " " << newx << " " << y2;
  } else if (y1 == y2) {
    int len = abs(x2 - x1);
    int newy = y1 + len;
    cout << x1 << " " << newy << " " << x2 << " " << newy;
  } else if (abs(x1 - x2) == abs(y1 - y2)) {
    cout << x1 << " " << y2 << " " << x2 << " " << y1;
  } else
    cout << -1;
  return 0;
}
