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

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());

		if(x1 == x2)
		{
			cout << fixed;
			cout.precision(6);
			cout << 2*x1 - xq << " " << yq << endl;
		}
		else if(y1 == y2)
		{
			cout << fixed;
			cout.precision(6);
			cout << xq << " " << 2*y1 - yq << endl;
		}
		else
		{
			double d1 = (y1 - y2)/(x1 - x2);
			double d2 = y1 - x1*d1;
			double x = (2*yq*d1 - 2*d1*d2 + xq - d1*d1*xq)/(d1*d1 + 1);
			double y = (xq - x)/d1 + yq;
			
			cout << fixed;
			cout.precision(6);
			cout << x << " " << y << endl;
		}
    }
    return 0;
}