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