#include <iostream>
#include <cstdio>
using namespace std;
int main(void)
{
	double x1, y1, x2, y2, xp, yp;
	double a, b;

	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf", x1, y1, x2, y2, xp, yp) != EOF){
		a = x2 - xp;
		b = y2 - yp;
		printf("%.6lf %.6lf\n", x2 - b, y2 - a);
	}
	return (0);
}