#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[4], diffx = 0, diffy = 0;
  for (int i = 0; i < 4; i++) {
    cin >> arr[i];
  }
  diffx = abs(arr[0] - arr[2]);
  diffy = abs(arr[1] - arr[3]);
  if (diffx == diffy) {
    cout << arr[0] << " " << arr[3] << " " << arr[2] << " " << arr[1];
  } else if ((diffx == 0 && diffy != 0) || (diffx != 0 && diffy == 0)) {
    cout << arr[0] + diffy << " " << arr[1] + diffx << " " << arr[2] + diffy
         << " " << arr[3] + diffx;
  } else {
    cout << -1;
  }
  return 0;
}
