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