#include<stdio.h>

int main(void){

  double x1,y1,x2,y2,xq,yq,x,y;
  double a,b,A,B,cx,cy;

  while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)){
    
    if(y1==y2){
      printf("%lf %lf\n",xq,-yq);
      continue;
    }
    if(x1==x2){
      printf("%lf %lf\n",-xq,yq);
      continue;
    }

    a=(x2-x1)/(y2-y1);
    b=y2-a*x2;

    A=-1/a;
    B=yq-A*xq;

    cx=(B-b)/(a-A);
    cy=A*cx+B;

    x=2*cx-xq;
    y=2*cy-yq;

    printf("%lf %lf\n",x,y);
  }

  return 0;
}