#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, y1, x2, y2;
  int a[10];
  while (~scanf("%d%d%d%d", &x1, &y1, &x2, &y2)) {
    if (x1 == x2) {
      a[0] = (y1 - y2) + x1;
      a[1] = (y2 - y1) + x1;
      a[2] = (y1 - y2) - x1;
      a[3] = (y2 - y1) - x1;
      int tt = 0;
      int tn = 0;
      for (int i = 0; i < 4; i++) {
        if (abs(a[i]) <= 1000) {
          tn = 1;
          tt = a[i];
          break;
        }
      }
      if (tn)
        printf("%d %d %d %d\n", tt, y1, tt, y2);
      else
        printf("-1\n");
    } else if (y1 == y2) {
      a[0] = (x1 - x2) + y1;
      a[1] = (x2 - x1) + y1;
      a[2] = (x1 - x2) - y1;
      a[3] = (x2 - x1) - y1;
      int tt = 0;
      int tn = 0;
      for (int i = 0; i < 4; i++) {
        if (abs(a[i]) <= 1000) {
          tn = 1;
          tt = a[i];
          break;
        }
      }
      if (tn)
        printf("%d %d %d %d\n", x1, tt, x2, tt);
      else
        printf("-1\n");
    } else if (x1 != x2 && y1 != y2) {
      if (abs(x1 - x2) == abs(y2 - y1))
        printf("%d %d %d %d\n", x1, y2, x2, y1);
      else
        printf("-1\n");
    } else
      printf("-1\n");
  }
  return 0;
}
