#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
double x,y,x1,y1,x2,y2,xq,yq,a,b,e,f;
char c;
while(cin>>x1){
cin>>c>>y1>>c>>x2>>c>>y2>>c>>xq>>c>>yq;
a=x2-x1;
b=y2-y1;
e=a*xq+b*yq;
f=b*(2*x1-xq)+a*(yq-2*y1);
x=(e*a+b*f)/(a*a+b*b);
y=(e*b-a*f)/(a*a+b*b);
printf("%.6f %.6f\n",x,y);
}
return 0;
}