
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <ctime>
#include <string>
#include <map>
#include <stack>
#include <queue>
#include <complex>

using namespace std;
typedef complex<double> xy_t;
double x[3], y[3];
char c;


double dot_product(xy_t a, xy_t b) { return (conj(a)*b).real(); }
double cross_product(xy_t a, xy_t b) { return (conj(a)*b).imag(); }
xy_t projection(xy_t p, xy_t b) { return b*dot_product(p,b)/norm(b); }

int main(void){
	while(cin >> x[0] >> c >> y[0] >> c >> x[1] >> c >> y[1] >> c >> x[2] >> c >> y[2]){
		xy_t P1(x[0], y[0]), P2(x[1], y[1]), Q(x[2], y[2]);
		xy_t S = projection(Q - P1, P2 - P1) + P1;
		xy_t T = S + S - Q;
		printf("%.6f %.6f\n", real(T), imag(T));
	}
	
    return 0;
}