//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0081
//????§£?????????
//?????????????????????

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

typedef complex<double> xy_t;
double x[3], y[3];
double pro(xy_t a, xy_t b) {
    return (conj(a)*b).real();
}
int main()
{
    xy_t p[3], a, b, c, d;
    char n;
    while (cin >> x[0] >> n >> y[0] >> n >> x[1] >> n >> y[1] 
        >> n >> x[2] >> n >> y[2])
    {
        p[0] = xy_t(x[0], y[0]);
        p[1] = xy_t(x[1], y[1]);
        p[2] = xy_t(x[2], y[2]);
        a = p[2] - p[0];
        b = p[1] - p[0];
        c = ((pro(a, b)*b) / norm(b)) + p[0];
        d = c + c - p[2];
        cout << d.real() <<" "<< d.imag() << endl;
    }
    return 0;
}