#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

static const double PI = 3.1415926536;

class Vector2{
public:
	Vector2() : x( 0.0 ), y( 0.0 ), rad( 0.0 ) {}
	Vector2( double aX, double aY ) : x( aX ), y( aY ), rad( 0.0 ){
		rad = atan2( y, x );
	}
	void rotate( double r ){
		double c = cos( r );
		double s = sin( r );
		double xx = x * cos( r ) - y * sin( r );
		double yy = x * sin( r ) + y * cos( r );
		x = xx;
		y = yy;
	}

	double x, y, rad;
};

int main(){
	Vector2 p1, p2, q;
	char c;

	while ( cin >> p1.x >> c >> p1.y >> c >> p2.x >> c >> p2.y >> c >> q.x >> c >> q.y ){
		Vector2 axis( p2.x - p1.x, p2.y - p1.y );
		Vector2 pq( q.x - p1.x, q.y - p1.y );
		pq.rotate( -axis.rad );
		pq.y = -pq.y;
		pq.rotate( axis.rad );

		cout << setprecision( 6 ) << setiosflags( ios::fixed );
		cout << pq.x + p1.x << " " << pq.y + p1.y << endl;
	}
	return 0;
}