#include <complex>
#include <cstdio>

using namespace std;

int main(){
	double _x[6];
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",_x,_x+1,_x+2,_x+3,_x+4,_x+5)){
		complex<double> x0(_x[0],_x[1]);
		complex<double> x1(_x[2],_x[3]);
		complex<double> q(_x[4],_x[5]);
		complex<double> r = polar(abs(q-x0),2*arg(x1-x0)-arg(q-x0)) + x0;
		printf("%.6f %.6f\n",real(r),imag(r));
	}
}