#include<stdio.h>
#include<algorithm>
#include<math.h>
using namespace std;
int main(){
	double a,b,c,d,e,f;
	while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&a,&b,&c,&d,&e,&f)){
		a+=0.000000001;
		b+=0.000000001;
		if(c<a){
			double g=a;a=c;c=g;
			g=b;b=d;d=g;
		}
		double r=atan2(d-b,c-a);
		double x=e-a;
		double y=f-b;
		double X=cos(r)*x+sin(r)*y;
		double Y=-sin(r)*x+cos(r)*y;
		Y=-Y;
		x=cos(r)*X-sin(r)*Y;
		y=sin(r)*X+cos(r)*Y;
		printf("%f %f\n",a+x,b+y);
	}
}