#include <cstdio>
using namespace std;

int main(){
    double x1, y1, x2, y2, xq, yq;
    while( scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq) != EOF ){
        double l = ((xq-x1)*(x2-x1)+(yq-y1)*(y2-y1))
                                    /
                   ((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
        printf("%.6lf %.6lf\n", 2*(l*(x2-x1)+x1)-xq, 2*(l*(y2-y1)+y1)-yq); 
    }
    return 0;
}