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

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;

typedef struct vector
{
    double x, y;
} vec;

int main()
{
    vec p1, p2, p3;
    char c;
    while (cin >> p1.x >> c >> p1.y >> c >> p2.x >> c >> p2.y >> c >> p3.x >> c >> p3.y)
    {
        vec a, b;
        a.x = p2.x - p1.x;
        a.y = p2.y - p1.y;
        b.x = p3.x - p1.x;
        b.y = p3.y - p1.y;

        double outer = a.x * b.y - a.y * b.x;
        double th = acos((a.x * b.x + a.y * b.y) / (sqrt(a.x * a.x + a.y * a.y) * sqrt(b.x * b.x + b.y * b.y)));
        double x, y;
        if (outer > 0)
        {
            x = cos(-2 * th) * b.x - sin(-2 * th) * b.y;
            y = sin(-2 * th) * b.x + cos(-2 * th) * b.y;
        }
        else
        {
            x = cos(2 * th) * b.x - sin(2 * th) * b.y;
            y = sin(2 * th) * b.x + cos(2 * th) * b.y;
        }
        printf("%.8f %.8f\n", x + p1.x, y + p1.y);
    }
    return 0;
}
