#include <bits/stdc++.h>
using namespace std;

void print(double x, double y) {
  printf("%.10lf %.10f\n", x, y);
}

int main() {
  double x_1, y_1, x_2, y_2, x_q, y_q, x_p, y_p;
  while (~scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x_1, &y_1, &x_2, &y_2, &x_q, &y_q)) {
    x_p = x_1 + x_2 - x_q;
    y_p = y_1 + y_2 - y_q;

    if (y_1 == y_2) {
      print(x_q, y_p);
    } else if (x_1 == x_2) {
      print(x_p, y_q);
    } else {
      double a = (y_1 - y_2) / (x_1 - x_2);
      double A = -1 / a;
      double b = y_1 - a * x_1;
      double B = y_q - A * x_q;
      double x, y;
      if (a + A) {
        x = (B - b) / (a + A);
        y = a * x + b;
      } else {
        y = (b + B) / 2.0;
        x = (y - b) / a;
      }
      print(2 * (x - x_q) + x_q, 2 * (y - y_q) + y_q);
    }
  }
}