object Main extends App {
    val Array(x1,y1,x2,y2) = scala.io.StdIn.readLine().split("\\s").map(_.toInt)

    val hen = ((x1-x2) + (y1-y2)).abs

    def point34(x1:Int,x2:Int,y1:Int,y2:Int): Array[Int] = {
        if (x1==x2) {
          if (y1<y2) {
            Array(x1-hen,y2,x1-hen,y1)
          } else {
            Array(x1+hen,y2,x1+hen,y1)
          }
        } else {
          if (x1<x2) {
            Array(x2,y2+hen,x1,y2+hen)
          } else {
            Array(x2,y2-hen,x1,y1-hen)
          }
        }
    }

    println(point34(x1,x2,y1,y2).map(_.toString).mkString(" "))
}