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

int main()
{	
	double a, b, c, d, p, q;
	char s;

	while (cin >> a >> s >> b >> s >> c >> s >> d >> s >> p >> s >> q) {

		double x = (p * ((c - a) * (c - a) - (d - b) * (d - b))
			+ 2 * (d - b) * (a * d - b * c - a * q + c * q)) / ((d - b) * (d - b) + (c - a) * (c - a)),
			y = (q * ((d - b) * (d - b) - (c - a) * (c - a))
				+ 2 * (c - a) * (- a * d + b * c + d * p - b * p)) / ((d - b) * (d - b) + (c - a) * (c - a));

		cout << fixed << setprecision(6) << x << " " << y << endl;
	}

	return 0;
}

