#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

const double EPS = 1.0e-10;

int main()
{
    for(;;){
        double x1, y1, x2, y2, xq, yq;
        char tmp;
        if(!(cin >> x1 >> tmp >> y1 >> tmp >> x2 >> tmp >> y2 >> tmp >> xq >> tmp >> yq))
            return 0;

        double x, y;
        if(abs(y2 - y1) < EPS){
            x = xq;
            y = 2*y2 - yq;
        }else if(abs(x2 - x1) < EPS){
            x = 2*x2 - xq;
            y = yq;
        }else{
            double a = - (x2 - x1) / (y2 - y1);
            double b = yq - a * xq;
            double c = (y2 - y1) / (x2 - x1);
            double d = 2*y1 - yq + (xq - 2*x1) * c;

            x = (d - b) / (a - c);
            y = a * x + b;
        }

        printf("%.10f %.10f\n", x, y);
    }
}