#include<iostream>
using namespace std;
struct Coordinate {
	long double x;
	long double y;
};
int main() {
	Coordinate _1, _2, _q, _r;
	char c;
	cin >> _1.x >> c >> _1.y >> c >> _2.x >> c >> _2.y >> c >> _q.x >> c >> _q.y;
	_r.x = _1.x + (_2.x - _q.x);
	_r.y = _1.y + (_2.y - _q.y);
	printf("%.6f %.6f\n", _r.x, _r.y);
	cin >> c;
}