import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.container;
import std.datetime;

double dot(cdouble a, cdouble b) {
	return (a * b.conj).re;
}

void main()
{
	foreach (line; stdin.byLine) {
		auto x = line.chomp.split(",").map!(to!double);
		cdouble[2] l;

		l[0] = x[0] + x[1] * 1i;
		l[1] = x[2] + x[3] * 1i;
		auto p = x[4] + x[5] * 1i;
		auto a = p - l[0];
		auto b = l[1] - l[0];
		auto q = 2 * (l[0] + dot(a, b) / (abs(b)^^2) * b) - p;
		writefln("%.8f %.8f", q.re, q.im);
	}
}