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

typedef pair<double, double> VEC;

pair<double, double> projection(VEC from, VEC to) {
    double size = (from.first * to.first + from.second * to.second) / (pow(to.first, 2) + pow(to.second, 2));
    VEC res = make_pair(size * to.first, size * to.second);
    return res;
}

int main() {
    double x1, y1, x2, y2, xq, yq;
    while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq) != EOF) {
        VEC line = make_pair(x2 - x1, y2 - y1);
        VEC PQ = make_pair(xq - x1, yq - y1);
        VEC proj = projection(PQ, line);
        printf("%.6f %.6f\n", x1 + 2 * proj.first - PQ.first, y1 + 2 * proj.second - PQ.second);
    }
}