#include<complex>
#include<cmath>
#include<cstdio>
using namespace std;
typedef complex<double> xy_t;
double dot_product(xy_t a,xy_t b)
{
  return (conj(a)*b).real();
}
int main()
{
  double x[3],y[3];
  xy_t p[3],a,b,c,d;
  while(~scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2])){
    p[0] = xy_t(x[0],y[0]);
    p[1] = xy_t(x[1],y[1]);
    p[2] = xy_t(x[2],y[2]);
    a = p[1] - p[0];
    b = p[2] - p[0];
    c = (dot_product(a,b)/norm(a)) * a;
    d = c - b + c + p[0];
    printf("%.4f %.4f\n",d.real(),d.imag());
  }
}