#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for(int i=(b) - 1;i>=(a);i--)
#define REP(i,n) for(int i=0;i<(n);i++)
#define RREP(i,n) for(int i=n-1;i>=0;i--)

#define PB push_back
#define INF (1<<29)
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define CLR(a) memset(a,0,sizeof(a))
#define fr first
#define sc second
const int dx[] = {-1,0,0,1},dy[] = {0,1,-1,0};

typedef long long int ll;

using namespace std;
double x[3],y[3];

void split(string s){
    vector<double> d;
    s += ",";
    int pos = -1;
    REP(i,s.size()){
	if(s[i] == ','){
	    d.PB(stod(s.substr(pos+1,i-pos-1)));
	    pos = i;
	}
    }
    REP(i,3){
	x[i] = d[2*i];
	y[i] = d[2*i+1];
    }
}

int main(){
    while(true){
	string s;
	cin >> s;
	if(cin.eof()) break;
	
	split(s);
	double xq,yq;
	xq = x[2] - x[0];
	yq = y[2] - y[0];
	/*
	printf("x[2] = %lf y[2] = %lf\n",x[2],y[2]);
	printf("x[1] = %lf y[1] = %lf\n",x[1],y[1]);
	printf("x[0] = %lf y[0] = %lf\n",x[0],y[0]);
	printf("xq = %lf yq = %lf\n",xq,yq);
	*/
	if(x[0]!=x[1]){
	    double angle = 0;
	    angle = atan( (y[1]-y[0])/(x[1]-x[0]) );
	    double txq,tyq;
	    txq = xq;
	    tyq = yq;
	    xq = txq * cos( -1*angle ) - tyq * sin( -1*angle);
	    yq = txq * sin( -1*angle ) + tyq * cos( -1*angle);
	    
	    yq *= -1.0;

	    txq = xq;
	    tyq = yq;
	    xq = txq * cos( angle ) - tyq * sin( angle);
	    yq = txq * sin( angle ) + tyq * cos( angle);
	    
	    xq += x[0];
	    yq += y[0];
	}else{
	    xq *= -1;
	    xq += x[0];
	    yq += y[0];
	}

	printf("%lf %lf\n",xq,yq);
    }
    return 0;
}