open Printf
open Scanf

let id x = x

let x, y, z, w = scanf "%d %d %d %d" (fun x y z w -> x, y, z, w)

let a = z - x
let b = y - w

let () =
  let x' = z + b in
  let y' = w + a in
  let z' = x + b in
  let w' = y + a in
  printf "%d %d %d %d\n" x' y' z' w'
 