#include <bits/stdc++.h>
using namespace std;
int foo(int x) {
  if (x < 0)
    return -1 * x;
  else
    return x;
}
int main() {
  int x1, x2, x3, x4, y1, y2, y3, y4;
  cin >> x1 >> y1 >> x2 >> y2;
  if (x1 == x2 || y1 == y2 || foo(x2 - x1) == foo(y2 - y1)) {
    if (x1 == x2)
      cout << x1 + y2 - y1 << " " << y1 << " " << x2 + y2 - y1 << " " << y2;
    else if (y1 == y2)
      cout << x1 << " " << y1 + x2 - x1 << " " << x2 << " " << y2 + x2 - x1;
    else
      cout << x2 << " " << y1 << " " << x1 << " " << y2;
  } else
    cout << "-1";
  return 0;
}
