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