#include<cstdio>
#include<iostream>

using namespace std;

int main(){

	char gav;
	double x1,y1,x2,y2,xq,yq;
	double ppa,ppb;
	double vea,veb;
	double crx,cry;
	double xr,yr;

	while(cin>>x1>>gav>>y1>>gav>>x2>>gav>>y2>>gav>>xq>>gav>>yq){
		////(x1,x2),(x2,y2)が成す直線P1P2を求める(X1-X2)==0,(Y1-Y2)==0は別で
		if(x1-x2!=0&&y1-y2!=0) {
			ppa=(y1-y2)/(x1-x2);
			ppb=(x1*y2-y1*x2)/x1-x2;
			//////(xq,yq)を通るP1P2の垂直の式を求める
			vea=-1*(1/ppa);
			veb=yq-vea*xq;
			///P1P2と垂直P1P2との交点を調べる
			crx=(veb-ppb)/(ppa-vea);
			cry=(ppa*veb-vea*ppb)/(ppa-vea);
			///以上から答えを出力
			xr=xq+(crx-xq)*2;
			yr=yq+(cry-yq)*2;
		}else if(x1-x2==0){
			////////x1==x2の時
			xr=xq+(x1-xq)*2;
			yr=yq;
		}
		else{
			////////y1==y2の時
			xr=xq;
			yr=yq+(y1-yq)*2;
		}

		printf("%.6f %.6f\n",xr,yr);
	}
}