#include <bits/stdc++.h>
using namespace std;
typedef complex<double> xy_t;
xy_t a, b, q, p;
char c;
double x1, x2, xq, y_1, y2, yq;
double s1, s2, s3;
int main()
{
	while(cin >> x1 >> c >> y_1 >> c >> x2 >> c >> y2 >> c >> xq >> c >> yq)
	{
		a=xy_t(x1, y_1);
		b=xy_t(x2, y2);
		q=xy_t(xq, yq);
		p=a+(b-a)*conj((q-a)/(b-a));
		cout << p.real() << ' ' << p.imag() << endl; 
	}
	return 0;
}