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

int main()
{
    double x1, y1, x2, y2, xq, yq;

    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq) != EOF){
       
        complex<double> p(x2 - x1, y2 - y1), q(xq - x1, yq - y1);
        double angle = acos(-1) / 2 - arg(p);
        q *= polar(1.0, angle);
        complex<double> res(-q.real(), q.imag());
        res *= polar(1.0,-angle);
        res += complex<double>(x1, y1);
        printf("%.6f %.6f\n", res.real(), res.imag());
    }
}