#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  int dx = abs(a - c);
  int dy = abs(b - d);
  if (dx == dy && (dx + dy) != 0) {
    printf("%d %d %d %d\n", a, d, c, b);
  } else if (dx == 0) {
    printf("%d %d %d %d\n", a + dy, b, a + dy, d);
  } else if (dy == 0) {
    printf("%d %d %d %d\n", a, b + dx, c, b + dx);
  } else
    printf("-1\n");
  return 0;
}
