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 <iostream>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>	// require sort next_permutation count __gcd reverse etc.
#include <cstdlib>	// require abs exit atof atoi 
#include <cstdio>		// require scanf printf
#include <functional>
#include <numeric>	// require accumulate
#include <cmath>		// require fabs
#include <climits>
#include <limits>
#include <cfloat>
#include <iomanip>	// require setw
#include <sstream>	// require stringstream 
#include <cstring>	// require memset
#include <cctype>		// require tolower, toupper
#include <fstream>	// require freopen
#include <ctime>		// require srand
#include <complex>

#define rep(i,n) for(int i=0;i<(n);i++)
#define ALL(A) A.begin(), A.end()

using namespace std;

typedef long long ll;
typedef complex<double> P;

typedef pair<double,double> DD;
typedef pair<double, DD> TD;

// 点 p1, p2  の通る直線の方程式
TD calc_line (P p1, P p2 )
{
	double a = p1.imag() - p2.imag();
	double b = p2.real() - p1.real();
	double c = p1.real()*p2.imag() - p2.real()*p1.imag();

	return TD (a, DD (b, c ) );
}

// 直線 ax+by+c = 0 に対して点 p の対称点を求める
P symmetric_pos (double a, double b, double c, P p )
{
	double C = 2.*(a*p.real() + b*p.imag() + c )/(a*a + b*b );

	return (p - C*P(a, b ) );
}

// 点 p から直線l:ax+by+c = 0　へ垂線と直線lとの交点の座標
P perp_foot (double a, double b, double c, P p )
{
	double C = (a*p.real() + b*p.imag() + c )/(a*a + b*b );

	return (p - C*P(a, b ) );

}

int main()
{
//	cut here before submit 
//	freopen ("testcase.a_symmetric_point", "r", stdin );
	double x1, y1, x2, y2, xq, yq;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq) != EOF ) {
		P p1 = P (x1, y1 );
		P p2 = P (x2, y2 );
		P q  = P (xq, yq );
		TD l = calc_line (p1, p2 );
		P res  = symmetric_pos (l.first, l.second.first, l.second.second, q ); 
		printf ("%lf %lf\n", res.real(), res.imag() );
	} // end loop
		
	return 0;
}