#include <iostream>
#include <stdio.h>
#include <math.h>
#include <iomanip>

using namespace std;



int main(void)
{
    double x1,y1,x2,y2,xq,yq;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)!=EOF){
        double xr,yr;
        
        if(x1!=x2){
            double a,b;
            a=(y2-y1)/(x2-x1);
            b=-a*x1+y1;
            
            yq-=b;
            
            xr=(1-a*a)/(a*a+1)*xq+2*a/(a*a+1)*yq;
            yr=(a*a-1)/(a*a+1)*yq+2*a/(a*a+1)*xq+b;
        }else{
            yr=yq;
            xr=-xq;
        }
        
        cout<<fixed<<setprecision(6)<<xr<<" "<<yr<<endl;
    }
}