#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, l, sum = 0, k;
  cin >> a >> b >> c >> d;
  if (a != c && b != d) {
    if (abs(c - a) == abs(d - b)) {
      cout << a << " " << d << " " << c << " " << b;
    } else {
      cout << "-1" << endl;
    }
  }
  if (a == c && b != d) {
    cout << a + abs(d - b) << " " << b << " " << a + abs(d - b) << " " << d;
  }
  if (b == d && a != c) {
    cout << a << " " << b + abs(a - c) << " " << c << " " << b + abs(a - c);
  }
}
