#include<iostream>
using namespace std;
int main() {
	while (cin){
		double x1, y1, x2, y2, xp, yp;
		scanf("%lf,%lf,%lf,%lf,%lf,%lf", x1, y1, x2, y2, xp, yp);
		cout << (x1 + x2 - xp) << ' ' << (y1 + y2 - yp) << '\n';
	}
}