#include <bits/stdc++.h>
using namespace std;
long long sum, cnt, cnt2, ans;
const int N = 1e3 + 9;
bool vis[N];
map<int, long long> rep;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (a - c == 0)
    cout << a + abs(b - d) << ' ' << b << ' ' << abs(b - d) + a << ' ' << d;
  else if (b - d == 0)
    cout << a << ' ' << abs(a - c) + b << ' ' << c << ' ' << abs(a - c) + d;
  else {
    if (abs(a - c) == abs(b - d))
      cout << a << ' ' << d << ' ' << c << ' ' << b;
    else
      cout << -1;
  }
}
