#include<cstdio>
#include<complex>
#include<cmath>
using namespace std;
typedef complex<double> xy;

int main() {
	xy p1, p2, q, r;

	while (~scanf("%lf,%lf,%lf,%lf,%lf,%lf",
		&p1.real(), &p1.imag(),
		&p2.real(), &p2.imag(),
		&q.real(), &q.imag()))
	{
		double t; //argment
		t = arg((q - p1)) - arg((p2 - p1));
		xy T(cos(-t*2), sin(-t*2));
		r = p1 + (q - p1) * T;
		printf("%.6f %.6f\n", real(r), imag(r));
	}
	return 0;
}