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