#include <bits/stdc++.h>
using namespace std;
int px1, px2, px3, px4, py1, py2, py3, py4;
int main() {
  cin >> px1 >> py1 >> px2 >> py2;
  if (px1 != px2 & py1 != py2) {
    if (abs(px1 - px2) != (abs(py1 - py2))) {
      cout << -1;
      return 0;
    }
    cout << px1 << ' ' << py2 << ' ' << px2 << ' ' << py1;
    return 0;
  }
  if (px1 == px2) {
    long long t = abs(py1 - py2);
    cout << px1 + t << ' ' << py1 << ' ' << px2 + t << ' ' << py2;
    return 0;
  }
  if (py1 == py2) {
    long long t = abs(px1 - px2);
    cout << px1 << ' ' << py1 + t << ' ' << px2 << ' ' << py2 + t;
    return 0;
  }
}
