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