#include<cstdio>
#include<iostream>
#include<cmath>
#include<complex>
#include<string>
#include<map>
using namespace std;
typedef complex<double> xy_t;
double X1,Y1,X2,Y2,XQ,YQ;

int main(){

  while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&X1,&Y1,&X2,&Y2,&XQ,&YQ)){
    xy_t P1(X1,Y1),P2(X2-X1,Y2-Y1),Q(XQ-X1,YQ-Y1);
    xy_t T=(((conj(P2)*Q).real())/norm(P2))*P2;
    xy_t R=T+(T-Q)+P1;
    printf("%.6f %.6f\n",real(R),imag(R));
  }

  return 0;

}