#include<cstdio>
int main(){
    double x1,y1,x2,y2,xq,yq;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf\n",&x1,&y1,&x2,&y2,&xq,&yq)!=-1){
        double nxa=(x2-x1)*(xq-x1)+(y2-y1)*(yq-y1),aa=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
        printf("%lf %lf\n",x1-(xq-x1)+2*(nxa/aa)*(x2-x1),y1-(yq-y1)+2*(nxa/aa)*(y2-y1));
    }
}