#include<cstdio>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
    double x1,x2,y1,y2,qx,qy;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&qx,&qy)!=EOF){
        if(x1==x2){
            printf("%.6lf %.6lf\n",2*x1-qx,qy);
            continue;
        }
        if(y1==y2){
            printf("%.6lf %.6lf\n",qx,2*y1-qy);
            continue;
        }

        double a1=(y2-y1)/(x2-x1);
        double a2=(-1)/a1;
        double b1=y1-a1*x1;
        double b2=qy-a2*qx;
        double xm=(b2-b1)/(a1-a2);
        double x=2*xm-qx;
        double y=x*a2+b2;
        printf("%.6lf %.6lf\n",x,y);
    }
}