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