#include <bits/stdc++.h>

using namespace std;

const double EPS = 1e-8;
const double INF = 1e12;
typedef complex<double> P;
namespace std {
  bool operator < (const P& a, const P& b) {
      return real(a) != real(b) ? real(a) < real(b) : imag(a) < imag(b);
    }
}
double cross(const P& a, const P& b) {
  return imag(conj(a)*b);
}
double dot(const P& a, const P& b) {
  return real(conj(a)*b);
}

struct L : public vector<P> {
  L(const P &a, const P &b) {
      push_back(a); push_back(b);
    }
};

P projection(const L &l, const P &p) {
  double t = dot(p-l[0], l[0]-l[1]) / norm(l[0]-l[1]);
  return l[0] + t*(l[0]-l[1]);
}

int main(){
    double x1,y1,x2,y2,xq,yq;
    while(scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1,&y1,&x2,&y2,&xq,&yq) != EOF){
        P a(x1,y1), b(x2, y2);
        L l(a, b);
        P p(xq, yq);

        P q = projection(l, p);
        if(p.real() < q.real()) p.real() += (q.real()-p.real())*2;
        else p.real() -= (p.real()-q.real())*2;
        if(p.imag() < q.imag()) p.imag() += (q.imag()-p.imag())*2;
        else p.imag() -= (p.imag()-q.imag())*2;
        printf("%lf %lf\n", p.real(), p.imag());
    }
}