#include <vector>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <string>
using namespace std;
int main(){
	
	double x1,y1,x2,y2,xq,yq;

	while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xq,&yq)!=EOF){
		double m,b,x,y;
		if(x2==x1){
			xq*=-1;
			printf("%.6f %.6f\n",xq,yq);
		}
		else{
			m=(y2-y1)/(x2-x1);
			b=y2-m*x2;
			x=2*m*yq-(m*m-1)*xq-2*b*m/(m*m+1);
			y=m*(xq+x)+2*b-yq;
			printf("%.6f %.6f\n",x,y);
		}
		
		
	}

}