//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;
    while (1) {
        for (int i = 0; i < 3; i++) {
            cin >> x[i] >> y[i];
        }
        if (!cin)break;
        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;
}