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

int main(){
	double xa, ya;
	double x, y;
	double x1, y1;
	double x2, y2;
	double xp, yp;
	double dx, dy;
	double r, r2;
	char c;
	while(cin >> x1 >> c >> y1 >> c >> x2 >> c
		>> y2 >> c >> xp >> c >> yp)
	{
		dx = x2 - x1;
		dy = y2 - y1;
		r = -dy * x1 + dx * y1;
		r2 = dx * xp + dy * yp;
		y = (r * dx + r2 * dy) / (dx * dx + dy * dy);
		x = (r2 * dx - r * dy) / (dx * dx + dy * dy);
		xa = xp + (x - xp) * 2;
		ya = yp + (y - yp) * 2;
		cout << fixed << setprecision(6) << xa << " " << ya << endl;
	}
	return 0;
}