#include <cstdio>
using namespace std;

//?????????????????¢?????????
double dist(double x1,double y1,double x2,double y2){
	return (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
}
//??????
double dot_product(double x1,double y1,double x2,double y2){
	return x1*x2+y1*y2;
}
int main(){
	double x1,y1,x2,y2,xq,yq;
	while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)){
		double xr,yr,k,xs,ys;
		k=dot_product(x2-x1,y2-y1,xq-x1,yq-y1)/dist(x2,y2,x1,y1);
		//s?????§?¨?
		xs=x1+k*(x2-x1);
		ys=y1+k*(y2-y1);
		//r?????§?¨?
		xr=2*xs-xq;
		yr=2*ys-yq;
		printf("%.6lf %.6lf\n",xr,yr);
	}
}