#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 a,b,c;
        a=y2-y1;
        b=x2-x1;
        c=(x2-x1)*y1-(y2-y1)*x1;
        double xr,yr;
        xr=xq-2.0*a*(a*xq+b*yq+c)/(a*a+b*b);
        yr=yq-2.0*b*(a*xq+b*yq+c)/(a*a+b*b);
        cout<<fixed<<setprecision(6)<<xr<<" "<<yr<<endl;
    }
}