#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int dx = abs(x1 - x2);
  int dy = abs(y1 - y2);
  if (dx != 0 && dy != 0) {
    if (dx != dy) {
      cout << -1;
    } else {
      cout << x1 << " " << y2 << " " << x2 << " " << y1;
    }
  } else {
    cout << x1 + dy << " " << y1 + dx << " " << x2 + dy << " " << y2 + dx;
  }
  return 0;
}
