//33
#include<cstdio>
#include<complex>

using namespace std;

int main(){
  for(double x,y,xx,yy,xxx,yyy;scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x,&y,&xx,&yy,&xxx,&yyy)==6;){
    typedef complex<double> P;
    P p(x,y),pp(xx,yy),ppp(xxx,yyy),r;
    r=p+polar(abs(ppp-p),2*arg(pp-p)-arg(ppp-p));
    printf("%4f %4f\n",r.real(),r.imag());
  }
  return 0;
}