#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <map>
#include <set>
#include <cstdio>
#include <cmath>
#define rep(i,l,n) for(lint i=l;i<n;i++)
#define rer(i,l,n) for(lint i=l;i<=n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define pb(a) push_back(a)
#define mk(a,b) make_pair(a,b)
#define fi first
#define se second
using namespace std;
typedef long long lint;
typedef vector<int> vi;
typedef vector<lint> vli;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

double dist(double x1,double y1,double x2,double y2){
	return (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
}

double dot_product(double x1,double y1,double x2,double y2){
	return x1*x2+y1*y2;
}

int main(){
	double x1,y1,x2,y2,xq,yq;
	while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)){
		double xr,yr,k,xs,ys;
		k=dot_product(x2-x1,y2-y1,xq-x1,yq-y1)/dist(x2,y2,x1,y1);
		xs=x1+k*(x2-x1);
		ys=y1+k*(y2-y1);
		//o(" "<<xs<<" "<<ys);
		xr=2*xs-xq;
		yr=2*ys-yq;
		//xr=x1+(2*k-1)*(xq-x1);
		//yr=y1+(2*k-1)*(yq-y1);
		printf("%.6lf %.6lf\n",xr,yr);
	}
}