#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);
}

int main(){
    Point p1, p2, q; char gomi;
    while(cin >> p1.real() >> gomi >> p1.imag() >> gomi >>
                 p2.real() >> gomi >> p2.imag() >> gomi >>
                 q.real() >> gomi >> q.imag()){
        Point pro = projection(p1, p2, q);
        Point ans = pro + (pro - q);
        cout << fixed << setprecision(6) << ans.real() << ' ' << ans.imag() << endl;
    }
    return 0;
}