Problem: Read a set of coordinates of three different points P1 (x1, y1), P2 (x2, y2), Q (xq, yq) on the plane, and line symmetry with point Q with the straight line passing through point P1 point P2 as the axis of symmetry. Create a program that outputs the point R (x, y) at the position of. Note that the point Q is not on its axis of symmetry.

<image>



input

The input consists of multiple datasets. Each dataset is given in the following format:


x1, y1, x2, y2, xq, yq


x1, y1, x2, y2, xq, yq (real numbers between -100 and 100) are given on one line separated by commas.

The number of datasets does not exceed 50.

output

Print x, y on a single line, separated by blanks, for each dataset. The output may contain an error of 0.0001 or less in real numbers.

Example

Input

1.0,0.0,-1.0,0.0,1.0,1.0
1.0,0.0,0.0,-1.0,3.0,0.0
0.0,1.0,0.0,-1.0,1.0,1.0


Output

1.000000 -1.000000
1.000000 2.000000
-1.000000 1.000000

Solution (in CPP):

Solution:
#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;
}