#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <cstdlib>
#include <complex>
#include <iomanip>

#define rep(i,n) for(int i=0;i<n;i++)
#define pb push_back

using namespace std;

vector<string> split(string &str,char delim)
{
	vector<string> res;
	size_t current = 0,found;
	while((found = str.find_first_of(delim,current)) != string::npos)
	{
		res.push_back(string(str,current,found  - current));
		current = found + 1;
	}
	res.push_back(string(str,current,str.size() - current));
	return res;
}

int main()
{
    double x1, y1, x2, y2, xq, yq; char c;
	string s;

    while (cin >> s) 
	{
		vector<string> _s = split(s,',');
		x1 = atoi(_s[0].c_str());
		y1 = atoi(_s[1].c_str());
		x2 = atoi(_s[2].c_str());
		y2 = atoi(_s[3].c_str());
		xq = atoi(_s[4].c_str());
		yq = atoi(_s[5].c_str());

       double a = y1 - y2;
	   double b = x2 - x1;
	   double c = x1*(-a) - y1*b;
       double x = xq - a*(a*xq + b*yq + c)/(a*a + b*b);
	   double y = yq - b*(a*xq + b*yq + c)/(a*a + b*b);
	   cout << fixed;
	   cout.precision(6);
       cout << x*2 - xq << " " << y*2 - yq << endl;
    }
    return 0;
}