#include <iostream>
 #include <math.h>
using namespace std;

int main() {
	// your code goes here
double x1,x2,y1,y2,xq,yq,r,xs,ys;
char s;
while(cin>>x1>>s>>y1>>s>>x2>>s>>y2>>s>>xq>>s>>yq){
	double xm,ym;
r=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));

	xs=xq-x1;
	ys=yq-y1;
	double n=(xs*(x2-x1)+ys*(y2-y1))/r;
	xm=x1+n*(x2-x1)/r;
	ym=y1+n*(y2-y1)/r;

	double ya,xa;
	xa=2*xm-xq;
	ya=2*ym-yq;
	printf("%.6f %.6f\n",xa,ya);
}
	return 0;
}