#NOTE:18:02 start writing, 

require 'scanf'

def ip(a,b)
    a[0]*b[0]+a[1]*b[1]
end

while s = STDIN.gets
    x1,y1,x2,y2,xq,yq = s.scanf("%f,%f,%f,%f,%f,%f")
    v1=[x1-xq,y1-yq]
    v2=[x2-xq,y2-yq]
    v3=[x2-x1,y2-y1]
    s = ip(v1,v3)/(ip(v1,v3)-ip(v2,v3))
    xr = xq+2.0*(1-s)*v1[0]+2.0*s*v2[0]
    yr = yq+2.0*(1-s)*v1[1]+2.0*s*v2[1]
    puts(sprintf("%1.6f %#1.6f",xr,yr))
end