#define _USE_MATH_DEFINES

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

int main()
{
	double x[3], y[3];
	double a, b;
	double s;
	double AB, AP, AB_AP;

	cout<<setprecision(6);
	cout<<setiosflags(ios::fixed);
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x[0], &y[0], &x[1], &y[1], &x[2], &y[2]) != EOF) {
		x[1] -= x[0];
		y[1] -= y[0];
		x[2] -= x[0];
		y[2] -= y[0];
		AB = sqrt(x[1]*x[1] + y[1]*y[1]);
		AP = sqrt(x[2]*x[2] + y[2]*y[2]);
		AB_AP = x[1]*x[2] + y[1]*y[2];
		s = 2.0 * acos(AB_AP/AB/AP);
		a = cos(-s)*x[2]-sin(-s)*y[2] + x[0];
		b = sin(-s)*x[2]+cos(-s)*y[2] + y[0];
		cout<<a<<" "<<b<<endl;
	}

	return 0;
}