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

int main() {

  double x1, y1, x2, y2, xq, yq;

  char c;

  while( cin >> x1 >> c >> y1 >> c >> x2 >> c >> y2 >> c >> xq >> c >> yq ) {

    x2 -= x1;
    y2 -= y1;
    xq -= x1;
    yq -= y1;
    double rq = sqrt( xq * xq + yq * yq );
    double aq = atan2( yq, xq );
    double a2 = atan2( y2, x2 );
    aq -= ( aq - a2 ) * 2;

    cout << fixed << setprecision(8) << rq * cos( aq ) + x1 << " " << rq * sin( aq ) + y1 << endl;

  }

  return 0;

}