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

int main()
{
	double x[3], y[3];
	complex<double> a, b, c;
	double angle;
	double r, i;

	cout<<setprecision(6);
	cout<<setiosflags(ios::fixed);
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x[0], &y[0], &x[1], &y[1], &x[2], &y[2]) != EOF) {
		a = complex<double>(x[0], y[0]);
		b = complex<double>(x[1], y[1]);
		c = complex<double>(x[2], y[2]);

		c -= a;
		angle = arg(b-a)*2.0;
		r = cos(angle)*c.real()+sin(angle)*c.imag();
		i = sin(angle)*c.real()-cos(angle)*c.imag();
		cout<<r+a.real()<<" "<<i+a.imag()<<endl;
	}

	return 0;
}