#include <iostream>
#include <sstream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <vector>
#include <cmath>

//AOJ0081
#define rep(x,to) for(int x=0;x<to;x++)
#define rep2(x,from,to) for(int x=from;x<to;x++)

using namespace std;


int main(void){

double x1,y1,x2,y2,xq,yq;
string ws;

	while( !cin.eof()){
		getline(cin,ws);
		replace(ws.begin(),ws.end(),',',' ');
		stringstream zz;
		zz << ws;
		zz >> x1 >> y1 >> x2 >> y2 >> xq >> yq;
		double xa=0,ya=0;
		if(x1==x2){ya=yq; xa = ((x1>xq)? xq+2*(x1-xq): xq-2*(xq-x1));}
		else if(y1==y2){xa=xq; ya = ((y1>yq)? yq+2*(y1-yq): yq-2*(yq-y1));}
		else{
			double a = (y1-y2)/(x1-x2);
			double b = y1 - a*x1;
			double ka = (-1)/a;
			double kb = yq - ka * xq;
			double xt = (ka - kb)/(b-a);
			double yt = a*xt + b;
			xa = (xq>xt)? xq-2*(xq-xt) :xq+2*(xt-xq);
			ya = (yq>yt)? yq-2*(yq-yt) :yq+2*(yt-yq);
		}
		
		printf("%.6f %.6f\n",xa,ya);
	}
	return 0;
	
}