#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	float x1, y1, x2, y2, xq, yq, a1, b1, a2, b2, s, t;
	
	while(scanf("%f,%f,%f,%f,%f,%f", &x1, &y1, &x2, &y2, &xq, &yq)!=EOF){
		if(x2-x1 != 0 && y2-y1 != 0){
			a1 = (y2-y1)/(x2-x1);
			b1 = y1 - x1*a1;
			a2 = -1 / a1;
			b2 = yq  - xq*a2;
			
			for(int i=(int)((x1 < x2)? x1:x2);; i++){
				s = (float)i*0.1;		
				if(a1*s+b1 == a2*s+b2){
					break;
				}
			}
		} else if(x2-x1 == 0){
			s = x1;
			a2 = 0;
			b2 = yq;
		} else if(y2-y1 == 0){
			t = y1 + y1 - yq;
			printf("%.6f %.6f\n", xq, t);
			continue;
		} else {
			t = 0;
			a2 = 0;
			b2 = 0;
		}
		
		t = s + s - xq;
		
		printf("%.6f %.6f\n", t, a2*t+b2);
	}
	
	return 0;
}