#define _USE_MATH_DEFINES
#include <iostream>
#include <sstream>
#include <cmath>
#include <algorithm>
#include <queue>
#include <stack>
#include <limits>
#include <map>
#include <string>
#include <cstring>
#include <set>
#include <deque>

using namespace std;

typedef long long ll;

int main(){

	double x1,y1,x2,y2,xq,yq;
	while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)){
		double vx = x2-x1;
		double vy = y2-y1;

		double lb=0.0;
		double ub=100000.0;
		double min_slope=10000000;
		double cx,cy,vqx,vqy,md;
		for(int i=0;i < 100; i++){
			md = (lb+ub)/2.0;
			cx = x1 + vx*md;
			cy = y1 + vy*md;

			vqx = cx - xq;
			vqy = cy - yq;

			double slope = abs(vx * vqx + vy* vqy);

			if(slope < min_slope){
				min_slope = slope;
				ub = md;
			}
			else if(slope > min_slope){
				lb = md;
			}

			if(abs(vx * vqx + vy* vqy) < 0.000001){
				printf("%f %f\n",2.0*cx-xq,2.0*cy-yq);
				break;
			}
		}
	}
}