#include <iostream>
#include <cstdio>
#include <complex>
using namespace std;
#define rep2(x,from,to) for(int x = (from); x < (to); ++(x))
#define rep(x,to) rep2(x,0,to)
int main() {
	double x1,y1,x2,y2,qx,qy;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1,&y1,&x2,&y2,&qx,&qy)) {
		// ??????????´???°????????????
		//complex<double> p1(x1,y1),p2(x2,y2),q(qx,qy);
  //      p2-=p1; q-=p1; //?§??????????????????????
  //      q/=p2; //????????¨???????§????????±???????
  //      q=conj(q); //????????¨????±??????????R??¨??????
  //      q*=p2; q+=p1;
		//printf("%.6lf %.6lf\n",q.real(),q.imag());

		//// ????????§?¨???§????????????
		qx -= x1, qy -= y1, x2 -= x1, y2 -= y1;
		double cos = x2 / sqrt(x2*x2+y2*y2), sin = y2 / sqrt(x2*x2+y2*y2);
		double bx = qx;
		// cf.????´???°????????????(????§????????????¶??????????????????
		//complex c = a/b;
       //c.re = (a.re * b.re + a.im * b.im)/(b.re * b.re + b.im * b.im);
       //c.im = (a.im * b.re - a.re * b.im)/(b.re * b.re + b.im * b.im);
		// cf.????´???°????????????(????§????????????¶???????????????
		// complex c = a*b;
		// c.re = a.re * b.re - a.im * b.im
		// c.im = a.re * b.im + a.im * b.re

		// ????§???????(????§???¢??°???????????????(sin,cos(q-p2)????????????????????????????????§????¨?
		qx = cos*qx+sin*qy, qy = -sin*bx+cos*qy;
		//printf("%.6lf %.6lf\n", qx, qy);
		bx = qx;
		// cf.????´???°?????±???(conj())(imag????????????
		qx = x1+cos*qx+sin*qy, qy = y1+sin*bx-cos*qy; 
		printf("%.6lf %.6lf\n", qx, qy);
	}
	return 0;
}