#include <bits/stdc++.h>
int main() {
  int x, y, xx, yy, a = 0, b = 0, c = 0, d = 0, z;
  scanf("%d %d %d %d", &x, &y, &xx, &yy);
  a = x < xx ? x : xx;
  c = x > xx ? x : xx;
  d = y > yy ? y : yy;
  b = y < yy ? y : yy;
  z = sqrt((x - xx) * (x - xx) + (y - yy) * (y - yy));
  if (x == xx)
    printf("%d %d %d %d\n", x + z, d, x + z, b);
  else if (y == yy)
    printf("%d %d %d %d\n", a, y + z, c, y + z);
  else if ((x - xx) * (x - xx) == (y - yy) * (y - yy)) {
    if (xx > x) {
      if (yy > y)
        printf("%d %d %d %d\n", a, d, c, b);
      else
        printf("%d %d %d %d\n", a, b, c, d);
    } else {
      if (y > yy)
        printf("%d %d %d %d\n", a, d, c, b);
      else
        printf("%d %d %d %d\n", a, b, c, d);
    }
  } else
    printf("-1\n");
}
