#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <cstring>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <fstream>
#include <complex>
#include <stack>
#include <queue>

using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
static const double EPS = 1e-5;

#define FOR(i,k,n) for (int i=(k); i<(int)(n); ++i)
#define REP(i,n) FOR(i,0,n)

int main(void){
  double x1,x2,y1,y2,xp,yp;
  while(scanf("%lf,%lf,%lf,%lf,%lf,%lf",&x1,&y1,&x2,&y2,&xp,&yp)!=EOF){
    double th1 = atan2(y2-y1,x2-x1);
    double th2 = atan2(yp-y1,xp-x1);
    double th = 2*th1 - th2;
    double r = (xp-x1)?(xp-x1)/cos(th2):(yp-y1)/sin(th2);
    printf("%lf %lf\n", x1+r*cos(th),y1+r*sin(th));
  }
  return 0;
}