#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, x, y, z, k;
int main() {
  cin >> a >> b >> c >> d;
  if (abs(a - c) == abs(b - d)) {
    cout << a << " ";
    cout << d << " ";
    cout << c << " ";
    cout << b << " ";
    return 0;
  }
  if (b == d) {
    cout << a << " ";
    cout << b + abs(a - c) << " ";
    cout << c << " ";
    cout << b + abs(a - c) << " ";
    return 0;
  }
  if (a == c) {
    cout << a + abs(b - d) << " ";
    cout << b << " ";
    cout << a + abs(b - d) << " ";
    cout << d << " ";
    return 0;
  }
  cout << -1;
  return 0;
}
