#include <iostream>
#include <cstdio>
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) != EOF) {
		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;
		qx = cos*qx+sin*qy, qy = -sin*bx+cos*qy;
		bx = qx;
		qx = x1+cos*qx+sin*qy, qy = y1+sin*bx-cos*qy; 
		printf("%.6lf %.6lf\n", qx, qy);
	}
	return 0;
}