#include<cstdio>
#include<cmath>

int main()
{
	double x1, y1, x2, y2, xq, yq;
	while( scanf( "%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq ) != EOF )
	{
		double ang = ( std::atan2( yq - y1, xq - x1 ) - std::atan2( y2 - y1, x2 - x1 ) ) * -2.0;
		double x, y, tx = xq - x1, ty = yq - y1;
		x = tx * std::cos( ang ) - ty * std::sin( ang ) + x1;
		y = ty * std::cos( ang ) + tx * std::sin( ang ) + y1;

		printf( "%.4f %.4f\n", x, y );
	}

	return 0;
}