#include<iomanip>
#include<iostream>
#include<complex>
using namespace std;
typedef complex<double> xy_t;

double dot(xy_t a,xy_t b){
    return (conj(a)*b).real();
}

xy_t proj(xy_t a,xy_t b){ //b???a????°???±
    return b*dot(a,b)/norm(b);
}

int main(){
    double x1,y1,x2,y2,xq,yq;
    char no;
    while(cin>>x1>>no>>y1>>no>>x2>>no>>y2>>no>>xq>>no>>yq){
        xy_t normal=xy_t(y2-y1,x1-x2); //??????????????????
        //cerr<<normal.real()<<" "<<normal.imag()<<"\n";
        xy_t v=xy_t(x1-xq,y1-yq);
        //cerr<<v.real()<<" "<<v.imag()<<"\n";

        xy_t r=xy_t(xq,yq)+proj(v,normal)+proj(v,normal);
        //cerr<<proj(v,normal).real()<<" "<<proj(v,normal).imag()<<"\n";

        cout<<fixed<<setprecision(6)<<r.real()<<" "<<r.imag()<<"\n";
    }
}