#include <iostream>
#include <math.h>
#include <cstdio>
#include <stdio.h>
using namespace std;
int main(){
	double x1,y1,x2,y2,xq,yq,x,y,xm,ym;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq) != EOF){
		double a=x2-x1,b=y2-y1,c=y1-yq,d=yq-y2;
		if(x1 != x2){
			xm = (xq*a*a-x1*b*d-x2*b*c)/(a*a+b*b);
			ym = b*(xm-x1)/a+y1;
			x = 2*xm-xq;
			y = 2*ym-yq;
		}else{
			x = 2*x1-xq;
			y = yq;			
		}
		printf("%.6lf %.6lf\n",x,y);
	}
	return 0;
}