#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int main(){

    double x1,y1,x2,y2,xq,yq,xr,yr;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)!=EOF){

        double a=y1-y2,b=x2-x1,c=x1*(y2-y1)-y1*(x2-x1);
        double x=xq-a*(a*xq+b*yq+c)/(a*a+b*b),y=yq-b*(a*xq+b*yq+c)/(a*a+b*b);
        double xr=x*2-xq,yr=y*2-yq;
        printf("%lf %lf\n",xr,yr);
    }
    return 0;
}