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