#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define EPS (1e-8)

int main() {
	double x1, y1, x2, y2, xq, yq;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq) != EOF) {
		double v1x = x2 - x1, v1y = y2 - y1;
		double l = -10000000.0, r = 10000000.0;
		
		REP(i, 100) {
			double mid = (l + r) / 2.0;
			double cx = x1 + v1x * mid, cy = y1 + v1y * mid;
			double v2x = cx - xq, v2y = cy - yq;
			
			
			double dot = v1x * v2x + v1y * v2y;
			if (dot > 0) r = mid; 
			else l = mid;
			
			if (abs(dot) < EPS) {
				printf("%f %f\n", 2.0 * cx - xq, 2.0 * cy - yq);
				break;
			}
		}
	}
	
	return 0;
}