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

#define EPS			(1e-10)
#define X(a)		(a).real()
#define Y(a)		(a).imag()
#define UNIT(a)		( (a)/abs(a) )
#define NORM(a)		( (a)*P(0,1) )


typedef complex<double> P;

double dot(P a, P b)
{
	return ( X(a)*X(b) + Y(a)*Y(b) );
}

double cross(P a, P b)
{
	return ( X(a)*Y(b) - Y(a)*X(b) );
}

double distPL(P p, P a, P b)
{
	return ( abs(cross(b-a, p-a))/abs(b-a) );
}

P symPL(P p, P a, P b)
{
	P v = UNIT(b-a);
	v *= ( cross(v,p-a)>0 ?  P(0,-1) : P(0,1) );

	return p+2.0*v*distPL(p,a,b);
}

int main()
{
	P a,b,p,s; char c;
	while(cin >> X(a))
	{
		cin >> c >> Y(a);
		cin >> c >> X(b);
		cin >> c >> Y(b);
		cin >> c >> X(p);
		cin >> c >> Y(p);

		s = symPL(p,a,b);

		cout << X(s) << " " << Y(s) << endl;
	}

}