#include<bits/stdc++.h>
using namespace std;
string s;
void f() {
	double x1, x2, y1, y2, x3, y3, a, b, c, d;
	//input
	s += ',';
	int n = 1; bool b00l = 0; double pk = 1, pk1 = 1, p = 0;
	for (char ch : s) {
		if (ch == ',') {
			p *= pk1;
			if (n == 1)x1 = p;
			if (n == 2)y1 = p;
			if (n == 3)x2 = p;
			if (n == 4)y2 = p;
			if (n == 5)x3 = p;
			if (n == 6)y3 = p;
			n++; b00l = 0; pk = 1; p = 0; pk1 = 1;
		}
		else if (ch == '.') {
			b00l = 1; pk /= 10;
		}
		else if (ch == '-') {
			pk1 = -1;
		}
		else if (b00l) {
			p += (double)(ch - '0') * pk;
			pk /= 10;
		}
		else {
			p *= 10; p += (double)(ch - '0');
		}
	}

	a = x1 - x2; b = y1 - y2;
	c = b; d = a;
	if (d < 0)d *= -1;
	else c *= -1;
	double k1 = -100000, k2 = 100000;
	while (k2 - k1 >= 0.0000000000001) {
		double mid = (k1 + k2) / 2;
		if ((a * (y3 + k1 * d - y1) - b * (x3 + k1 * c - x1)) * ((a * (y3 + mid * d - y1) - b * (x3 + mid * c - x1))) > 0) {
			k1 = mid;
		}
		else k2 = mid;
	}
	double k = k1 + k2;
	printf("%.20f %.20f\n", x3 + k * c, y3 + k * d);
}
signed main() {
	while (cin >> s) f();
}
