#include <iostream>
#include <string>
#include <vector>
using namespace std;

class Point {
public:
    double x, y;
    Point(double x, double y) : x(x), y(y) {};
};

class Line {
public:
    double m, n; // y = m * x + n
    Line(Point p1, Point p2) {
        m = (p2.y - p1.y) / (p2.x - p1.x);
        n = p1.y - m * p1.x;
    }
};

Point symmetricPoint(Point p1, Line L) {
    double x = ((1 - L.m * L.m) * p1.x + 2 * L.m * (p1.y - L.n)) / (L.m * L.m + 1);
    double y = L.m * (p1.x + x) + 2 * L.n - p1.y;
    return Point(x, y);
}

int main() {
    double x1,y1,x2,y2,xq,yq;
    char c;
    while (cin>>x1>>c>>y1>>c>>x2>>c>>y2>>c>>xq>>c>>yq) {
        double rx, ry;
        if (x1 == x2) {
            rx = 2 * x1 - xq;
            ry = yq;
        } else {
            Line l(Point(x1, y1), Point(x2, y2));
            Point p = symmetricPoint(Point(xq, yq), l);
            rx = p.x;
            ry = p.y;
        }
        cout.precision(6);
        cout << fixed << rx << " " << ry << endl;
    }
    return 0;
}