#include <iostream>
#include <cstdio>
#include <cmath>

int main()
{
	long double x1, y1, x2, y2, xq, yq;
	
	while (scanf("%Lf,%Lf,%Lf,%Lf,%Lf,%Lf", &x1, &y1, &x2, &y2, &xq, &yq)==6) {
		long double theta = atan2(y2-y1, x2-x1);
		long double theta_q = atan2( (yq-y1), (xq-x1) );
		long double alpha = 2.0 * (theta - theta_q);
		long double x = cos(alpha) * (xq-x1) - sin(alpha) * (yq-y1) + x1;
		long double y = sin(alpha) * (xq-x1) + cos(alpha) * (yq-y1) + y1;
		std::cout << std::fixed << x << " " << y << std::endl;
	}
	return 0;
}

