#include <cstdio>
#include <complex>
using namespace std;

typedef complex<double> P;

#define X(a)		(a).real()
#define Y(a)		(a).imag()
#define EQ(a,b)		(-EPS<(a)-(b) && (a)-(b)<EPS)
#define EQV(a,b)	( EQ(X(a),X(b)) && EQ(Y(a),Y(b)) )

#define unit(a)		( (a)/abs(a) )
#define normal(a)	( (a)*P(0,1) )
#define dot(a,b)	( X((a)*conj(b)) )
#define cross(a,b)	( Y(conj(a)*(b)) )

// ツ青つ静シツづ陳シツ静シツづ個古ーツ点
P projection(P a, P b, P p)
{
	double t = dot(p-a, a-b) / norm(a-b);
	return a + t*(a-b);
}

// ツ陳シツ静シツづ可妥篠湘個づ按点
P reflection(P a, P b, P p)
{
  return p + 2.0*(projection(a,b,p) - p);
}

int main()
{
	double a,b,c,d,e,f;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&a,&b,&c,&d,&e,&f)!=EOF)
	{
		P p(a,b),q(c,d),r(e,f),s;
		s = reflection(p,q,r);
		printf("%.6lf %.6lf\n",X(s),Y(s));
	}
}