#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  double slope;
  slope = x2 == x1 ? INT_MAX : (double)(y2 - y1) / (double)(x2 - x1);
  if (slope == 0 || abs(slope) == 1 || abs(slope) == INT_MAX) {
    if (slope == 0) {
      int sideSq = abs(x2 - x1);
      int next_y = y1 + sideSq;
      if (next_y > 1000) {
        next_y = y1 - sideSq;
        if (next_y < -1000) {
          cout << -1 << '\n';
          return 0;
        }
      }
      cout << x1 << " " << next_y << " " << x2 << " " << next_y << '\n';
    } else if (slope == INT_MAX) {
      int sideSq = abs(y2 - y1);
      int next_x = x1 + sideSq;
      if (next_x > 1000) {
        next_x = x1 - sideSq;
        if (next_x < -1000) {
          cout << -1 << '\n';
          return 0;
        }
      }
      cout << next_x << " " << y1 << " " << next_x << " " << y2 << '\n';
    } else {
      cout << x1 << " " << y2 << " " << x2 << " " << y1 << '\n';
    }
  } else {
    cout << -1 << '\n';
  }
  return 0;
}
