#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int INF = 1000000000;
#define REP(i,s,n) for(int i=(int)(s);i<(int)(n);i++)
#define rep(i,n) REP(i, 0, n)
typedef complex<double> Point;
double cross(const Point& a, const Point& b){
    return (conj(a) * b).imag();
}
double dot(const Point& a, const Point& b){
    return real((conj(a) * b));
}
Point projection(const Point& a, const Point& b, const Point &p) {
    double t = dot(p - a, a - b) / norm(a - b);
    return a + t * (a - b);
}
Point p1, p2, q;
void input(){
    Point a[3]; char gomi;
    rep(i, 3) {
        cin >> a[i].real() >> gomi >> a[i].imag();
        if(i != 2) cin >> gomi;
    }
    p1 = a[0]; p2 = a[1]; q = a[2];
}
int main(){
    while(!cin.eof()){
        input();
        Point pro = projection(p1, p2, q);
        Point ans = pro + (pro - q);
        cout << fixed << setprecision(7) << ans.real() << ' ' << ans.imag() << endl;
    }
    return 0;
}