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

int main() {
  double x1, y1, x2, y2, xq, yq, a, b, c, d, e, x, y;
  while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq) == 6) {
    a = y2 - y1;
    b = x1 - x2;
    c = x2*y1 - x1*y2;
    d = a*xq + b*yq + c;
    e = d / (a*a + b*b);
    x = xq - 2*a*e;
    y = yq - 2*b*e;
    printf("%.6lf %.6lf\n", x, y);
  }
  return 0;
}