#include <iostream>
#include <cmath>
using namespace std;


double distance(double x1, double y1, double x2, double y2) {
  return sqrt((x1-x2) * (x1-x2) + (y1-y2) * (y1-y2));
}

int main() {
  double P2Q[2],P2P1[2],lq2,l12,theta,x1,x2,y1,y2,xq,yq,P2R[2],OR[2];
  while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq) == 6) {
    P2Q[0] = xq - x2;
    P2Q[1] = yq - y2;
    P2P1[0] = x1 - x2;
    P2P1[1] = y1 - y2;
    lq2 = distance(xq,yq,x2,y2);
    l12 = distance(x1,y1,x2,y2);
    theta = acos((P2Q[0] * P2P1[0] + P2Q[1] * P2P1[1]) / (lq2 * l12));
    P2R[0] = cos(2 * theta) * P2Q[0] - sin(2 * theta) * P2Q[1];
    P2R[1] = sin(2 * theta) * P2Q[0] + cos(2 * theta) * P2Q[1];
    OR[0] = x2 + P2R[0];
    OR[1] = y2 + P2R[1];
    printf("%.6lf %.6lf",OR[0],OR[1]);
    cout << endl;
  }
}