#include <cstdio>
#include <complex>
using namespace std;

typedef complex<double> P;

double dot(P a, P b){
	return real(a) * real(b) + imag(a) * imag(b);
}

int main(){
	P p[3];
	double x, y;
	while(1){
		for(int i = 0; i < 3; ++i){
			if(scanf("%lf,%lf,", &x, &y) == EOF){
				return 0;
			}
			p[i] = P(x, y);
		}
		
		P d = p[0] - p[1];
		P ans = 2.0 * (p[0] - dot(p[0] - p[2], d) / norm(d) * d) - p[2];
		printf("%f %f\n", real(ans), imag(ans));
	}
}