require "matrix"
while gets
    x1, y1, x2, y2, xq, yq = $_.split(",").map &:to_f
    s = Vector[x1, y1]
    u = Vector[x2-x1, y2-y1]
    v = Vector[xq-x1, yq-y1]
    h = u * u.inner_product(v) / u.r**2
    printf("%.7f %.7f\n", *(s + h * 2 - v).to_a)
end