#include <iostream>
#include <vector>
#include <string>
#include <cstdio>
#include <complex>
#include <cmath>
//#include <cstdlib>
using namespace std;

#define FOR(i,x) for(int i=0;i<x;i++)

const double EPS = 1e-7;
typedef complex<double> P; /* _ */
struct L { P p, q; L(P p, P q) : p(p), q(q) {} }; /* üª */

// complexÉå¬ÖWªKvÈê
namespace std{
	bool operator < (const P &a, const P &b){ return make_pair(real(a),imag(a)) < make_pair(real(b),imag(b)); }
}

// àÏEOÏEpx(xNga,bÌZ)
double dot(P a, P b) { return real(conj(a)*b); }
double cross(P a, P b) { return imag(conj(a)*b); }
double angle(P a, P b) { return arg(conj(a)*b); }

// _p©ç¼ülÉºëµ½üÌ«
P footPerp(L l, P p) {
	return l.p + (l.q-l.p)*( dot(l.q-l.p, p-l.p) / (abs(l.q-l.p)*abs(l.q-l.p)));
}

// ¼ülÉÎ·é_pÌ
P lineShadow(L l, P p) {
	return footPerp(l, p)+footPerp(l, p)-p;
}

int main(){
	string in;
	while(cin>>in){
		double x1,y1,x2,y2,xq,yq;
		sscanf(in.c_str(), "%lf,%lf,%lf,%lf,%lf,%lf", &x1,&y1,&x2,&y2,&xq,&yq);
		/*
		double x1 = atof(in.substr(0, in.find(',')).c_str());
		in = in.substr(in.find(',')+1);
		double y1 = atof(in.substr(0, in.find(',')).c_str());
		in = in.substr(in.find(',')+1);
		double x2 = atof(in.substr(0, in.find(',')).c_str());
		in = in.substr(in.find(',')+1);
		double y2 = atof(in.substr(0, in.find(',')).c_str());
		in = in.substr(in.find(',')+1);
		double xq = atof(in.substr(0, in.find(',')).c_str());
		in = in.substr(in.find(',')+1);
		double yq = atof(in.substr(0, in.find(',')).c_str());
		in = in.substr(in.find(',')+1);*/

		L l = L(P(x1,y1), P(x2,y2));
		P q = P(xq, yq);

		P r = lineShadow(l, q);

		printf("%.7f %.7f\n", real(r), imag(r));
	}
	return 0;
}