#include <iostream>
#include <cmath>
#include <stdio.h>
#include <float.h>
#include <stdio.h>
using namespace std;

int main(){
  double x1,x2,y1,y2,px,py;
  char ch;
  while( cin>>x1>>ch>>y1>>ch>>x2>>ch>>y2>>ch>>px>>ch>>py ){
    if(x1 == x2){
      printf("%.6f %.6f\n",2*x1-px,py);
      continue;
    }
    if(y1 == y2){
      printf("%.6f %.6f\n",px,2*y1-py);
      continue;
    }

    double a = (y1-y2)/(x1-x2);
    double b = -a*x1+y1;
    double c = -1/a;
    double d = -c*px + py;
    double qx = (d-b)/(a-c);
    double qy = a*qx + b;
    double ax = 2*qx - px;
    double ay = 2*qy - py;
    printf("%.6f %.6f\n",ax,ay);
  }
  return 0;
}