#include <cstdio>
#include <complex>
#include <cmath>

using namespace std;
typedef complex<double> Vector;

double dot(const Vector &v1, const Vector &v2) {
    return v1.real()*v2.real() + v1.imag()*v2.imag();
}

int main() {
    double X1, Y1, X2, Y2, XQ, YQ;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf", &X1, &Y1, &X2, &Y2, &XQ, &YQ) != EOF) {
        Vector p1(X1, Y1), p2(X2, Y2), q(XQ, YQ);
        const double cosval = dot(q-p1, p2-p1) / abs(q-p1) / abs(p2-p1);
        const double angle = acos(cosval);
        Vector r(p1 + (q-p1)*polar(1.0, -angle*2));
        printf("%.6f %.6f\n", r.real(), r.imag());
    }
    return 0;
}