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

int main() {
  cout.precision(15);
  double x1,y1,x2,y2,x,y,c,s;
  cout << x1 << endl;
  while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&x,&y)!=EOF) {
	  x-=x1; y-=y1; x2-=x1; y2-=y1;
	  c=x2/sqrt(x2*x2+y2*y2); s=y2/sqrt(x2*x2+y2*y2);
	   x2=x; x=c*x+s*y; y=s*x2-c*y;
	   x2=x; x=x1+c*x-s*y; y=y1+s*x2+c*y;
	  cout << x << ' ' << y << endl;
  }	  
 return 0;
}