#include <bits/stdc++.h>
using namespace std;

int main(){
	
	double Ax,Ay,Bx,By,Cx,Cy;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&Ax,&Ay,&Bx,&By,&Cx,&Cy)!=EOF){
		double dAx = (Ax-Bx)/hypot(Ax-Bx,Ay-By);
		double dAy = (Ay-By)/hypot(Ax-Bx,Ay-By);
		double t = dAy*(Ax-Cx)-dAx*(Ay-Cy);
		double Dx = Cx+t*2*dAy;
		double Dy = Cy-t*2*dAx;
		printf("%.6f %.6f\n",Dx,Dy);
	}
	
	return 0;
}
