#include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<iostream>
#include<queue>
#include<map>
#include<set>
#include<complex>
#include<stack>
#include<cmath>
  
using namespace std;
  
#define reps(i,f,n) for(int i=f;i<int(n);i++)
#define rep(i,n) reps(i,0,n)


#define X real()
#define Y imag()
typedef complex<double> P;

class L:public vector<P>{
	public:
	L(P a, P b){
		push_back(a);
		push_back(b);
	}
};

template<class T> T sq(T x){return x*x;}
double dot(P a, P b){return a.X*b.X + a.Y*b.Y;} 


P projection_LP(L a, P p){
	P e = (a[1]-a[0])/abs(a[1]-a[0]);
	double d = dot(p-a[0], e);
	return a[0]+d*e;
}

P refrection_LP(L a, P p){
	P b = projection_LP(a,p);
	P c = b-p;
	return p+c+c;
}


int main(){
	double xa,ya,xb,yb,xc,yc;
	
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&xa,&ya,&xb,&yb,&xc,&yc)!=EOF){
		P ans = refrection_LP(L(P(xa,ya),P(xb,yb)), P(xc,yc));
		
		printf("%.9lf %.9lf\n",ans.X,ans.Y);
	}
}