#define _USE_MATH_DEFINES
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<climits>
#include<queue>
#include<map>
#include<set>
#include<vector>
#include<list>
#include<stack>
#include<cstring>
#include<string>
#include<cmath>
using namespace std;

struct Point{
	double x,y;
};

struct Line{
	double x[2],y[2];
};

int main(){
	Point p;
	Line l;
	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&l.x[0],&l.y[0],&l.x[1],&l.y[1],&p.x,&p.y)!=EOF){
		if(l.x[0]==l.x[1]){
			printf("%lf %lf\n",p.x+(l.x[0]-p.x)*2,p.y);
		}
		else if(l.y[0]==l.y[1]){
			printf("%lf %lf\n",p.x,p.y+(l.y[0]-p.y)*2);
		}
		else{
			double a[2],b[2],x;
			a[0] = (l.y[1]-l.y[0])/(l.x[1]-l.x[0]);
			b[0] = l.y[0]-a[0]*l.x[0];
			a[1] = -(l.x[1]-l.x[0])/(l.y[1]-l.y[0]);
			b[1] = p.y-a[1]*p.x;
			x = -(b[0]-b[1])/(a[0]-a[1]);
			printf("%lf %lf\n",p.x+(x-p.x)*2,a[1]*(p.x+(x-p.x)*2)+b[1]);
		}
	}
	return 0;
}