def main(input =STDIN)
  while (arg = input.gets)
    x1, y1, x2, y2, xq, yq = arg.split(",").map(&:to_f)
    p1, p2, q = Complex(x1, y1), Complex(x2 - x1, y2 - y1), Complex(xq - x1, yq - y1)
    puts (Complex.polar(q.abs, p2.phase * 2 - q.phase) + p1).rect.map{|i|i.round(5)}.join(" ")
  end
end
main