
#include <iostream>
#include <cstdio>
#include <complex>
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)>0){
    complex<double> p[2],q;
    p[0]=complex<double>(x1,y1);
    p[1]=complex<double>(x2,y2);
    q   =complex<double>(xq,yq);

    complex<double> r;
    r=conj(q*conj(p[1]-p[0]))/conj(p[1]-p[0]);
    cout << r.real() << ' ' << r.imag() << endl;
  }

  return 0;
}