#include<stdio.h>
#include<string.h>

int main(){
	double x1,y1,x2,y2,xq,yq,x,y;
	while(0<=scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)){
		x=((x2-x1)*(x2-x1)*xq+(x2-x1)*(y2-y1)*(yq-y1)+(y2-y1)*(y2-y1)*x1)/((y2-y1)*(y2-y1)+(x2-x1)*(x2-x1));
		y=(y2-y1)*( (x2-x1)*xq+(y2-y1)*(yq-yq)-(x2-x1)*x1)/((y2-y1)*(y2-y1)+(x2-x1)*(x2-x1));
		printf("%lf %lf\n",2*x-xq,2*y-yq);
	}
	return 0;
}