#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
main(){
  double x1,y1,x2,y2,xq,yq;
  while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)){
    if(x2==x1){
      printf("%lf %lf\n",(x2-xq)*2+xq,yq);
      continue;
    } else if(y2==y1){
      printf("%lf %lf\n",xq,(y2-yq)*2+yq);
      continue;
    }

    double a1 = (y2-y1)/(x2-x1);
    double b1 = y1 - a1*x1;
    double a2 = -(1/a1);
    double b2 = yq - a2*xq;
    //    printf("y=%lfx+%lf\n",a1,b1);
    //    printf("y=%lfx+%lf\n",a2,b2);
    //    y-a1x=b1;
    //    y-a2x=b2;
    a1*=-1;
    a2*=-1;
    double y0 = (a2*b1-a1*b2)/(1*a2-1*a1);
    double x0 = (1*b2 - 1*b1)/(1*a2-1*a1);
    //    printf("%lf %lf\n",x0,y0);
    double xr = (x0-xq)*2+xq;
    double yr = (y0-yq)*2+yq;
    printf("%lf %lf\n",xr,yr);
  } 
}