#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  if (y1 != y2 && x1 != x2 && (abs(x1 - x2) != abs(y1 - y2))) {
    cout << "-1" << endl;
    return 0;
  }
  int x3, y3, x4, y4;
  if (abs(x1 - x2) == abs(y1 - y2)) {
    x3 = x1;
    y3 = y2;
    x4 = x2;
    y4 = y1;
  } else if (x1 == x2) {
    x3 = x2 + abs(y2 - y1);
    x4 = x1 + abs(y2 - y1);
    y3 = y2;
    y4 = y1;
  } else if (y1 == y2) {
    y3 = y2 + abs(x2 - x1);
    y4 = y1 + abs(x2 - x1);
    x3 = x2;
    x4 = x1;
  }
  cout << x3 << " " << y3 << " " << x4 << " " << y4 << endl;
  return 0;
}
