import scala.io.Source.stdin

object Main extends App {
  def f(x:Double) = if(x == -0.0) 0.0 else x

  val results = stdin.getLines.map { s=>
    val n = s.split(",").map(_.toDouble)
    val d = Math.pow(n(2)-n(0),2) + Math.pow(n(3)-n(1),2)
    val inner = (n(2)-n(0))*(n(4)-n(0)) + (n(3)-n(1))*(n(5)-n(1))
    val (x,y) = (2*inner*(n(2)-n(0))/d + 2*n(0)-n(4), 2*inner*(n(3)-n(1))/d + 2*n(1)-n(5))
    "%.6f %.6f".format(f(x),f(y))
  }
  println(results.mkString("\n"))
}