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

    val v12 = Seq(x2-x1,y2-y1)

    def rotate(v:Seq[Int]):Seq[Int] = {
      val a = Seq(-v(1),v(0))
      a
    }

    val v23 = rotate(v12)

    val point2 = Seq(x2,y2)
    val point3 = (point2 zip v23).map { case (x, y) => x + y }

    val v34 = rotate(v23)
    val point4 = (point3 zip v34).map { case (x, y) => x + y }

    println((point3 ++ point4).map(_.toString).mkString(" "))
}