#include<math.h>
int main(void)
{
	double x1,x2,xq,y1,y2,yq,a,b,c,xe,ye,t;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)>0)
	{
		a = y1-y2;
		b = x2-x1;
		c = x1*(y2-y1)-y1*(x2-x1);
		t=(a*xq+b*yq+c)/(a*a+b*b);
		xe = xq-a*t;
		ye = yq-b*t;
		printf("%f %f\n", 2*xe-xq, 2*ye-yq);
	}
	return 0;
}