#include <iostream>
#include <algorithm>
#include <complex>
#include <vector>
#include <cmath>
#include <cstdio>
#include <string>
#include <sstream>
using namespace std;
typedef complex<double> P;

double dot(P a, P b) {
  return a.real()*b.real() + a.imag()*b.imag();
}

P project(P s1, P s2, P p) {
  P base = s2 - s1;
  double t = dot(p - s1, base)/norm(base);
  return s1 + base*t;
}

P reflect(P s1, P s2, P p) { return p + (project(s1, s2, p) - p)*2.0; }

int main() {
  P s1, s2, p;
  string line;
  while(getline(cin, line)) {
    replace(line.begin(), line.end(), ',', ' ');
    stringstream ss(line);
    ss >> s1.real() >> s1.imag()
       >> s2.real() >> s2.imag() >> p.real() >> p.imag();
    P q = reflect(s1, s2, p);
    printf("%.8f %.8f\n", q.real(), q.imag());
  }
  return 0;
}