#include<cstdio>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main(void){
  double x1,y1,x2,y2,xq,yq,n,m,x,y;
  while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq) != EOF){
    if(x1 == x2){
      printf("%f %f\n",xq+(x1-xq)*2,yq);
      continue;
    }
    if(y1 == y2){
      printf("%f %f\n",xq,yq+(y1-yq)*2);
      continue;
    }
    m = (y2-y1)/(x2-x1);
    n = -((x2-x1)/(y2-y1));
    y = (2*m*xq+2*n+(m*m-1)*yq)/(m*m+1);
    x = ( (1-m*m) * xq + (m*m-1)*yq + 2*n)/(m*m+1);
    //= -(m*y)+xq+n*yq;
    printf("%f %f\n",x,y);
  }
}