#include <iostream>
#include <vector>
#include <stack>
#include <sstream>
#include <ctype.h>
#include <cstdlib>
#include <cstdio>
#include <cmath>
using namespace std;
struct P{double x,y;};

void output(double x,double y){
	printf("%.6lf %.6lf\n",x,y);
}
int main(){
	P a,b,r; string s;
	while(getline(cin,s)){
		while(~s.find(","))s[s.find(",")] = ' ';
		stringstream ss(s);
		ss >> a.x >> a.y >> b.x >> b.y >> r.x >> r.y;
		
		double x,y,X = a.x - b.x , Y = a.y - b.y ;
		if(X == 0){
			x = r.x - a.x;
			output(a.x-x,r.y);
		}else if(Y == 0){
			y = r.y - a.y;
			output(r.x,a.y-y);
		}else{
			x = ( r.y -a.y + (Y/X)*a.x + (X/Y)*r.x )/((X*X+Y*Y)/(X*Y));
			y = (Y/X)*(x-a.x) + a.y;
			output(2*x-r.x,2*y-r.y);
		}
	}
}