#include <iostream>
#include <sstream>
#include <cstdio>
#include <fstream>

using namespace std;

struct P{double x,y;};

void output(double x,double y)
{
	printf("%.6lf %.6lf\n",x,y);
}

int main(){

//	cut here before submit 
//	freopen ("testcase.sp", "r", stdin );

	string str = "";

	while (getline(cin,str) ){

		while (str.find(',') != string::npos ){
			str = str.replace (str.find(','), 1, " " );
		} // end while
		P a,b,q;
		stringstream ss (str );
		ss >> a.x >> a.y >> b.x >> b.y >> q.x >> q.y;
		
		double x , y , X = b.x - a.x, Y = b.y - a.y;
		if (X == 0 ){
			output(2*a.x-q.x,q.y );
		}else if (Y == 0 ){
			output(q.x,2*a.y-q.y );
		}else{
			x = ( q.y -a.y + (Y/X)*a.x + (X/Y)*q.x ) / ( (X*X+Y*Y)/(X*Y) );
			y = (Y/X)*(x-a.x) + a.y;
			output(2*x-q.x,2*y-q.y );
		}
	}

	return 0;
}