#!/usr/bin/ruby
# coding: utf-8

PI = Math.acos(-1)
EPS = 0.00001

while true
  line = gets
  break if line == nil
  x1,y1,x2,y2,xq,yq = line.chomp.split(',').map{|x| x.to_f}

  xp, yp = 0, 0

  if x2 != x1
    m = (y2 - y1) / (x2 - x1)

    xq -= x1
    yq -= y1
    xp = (1-m*m) * xq + 2*m * yq
    yp = 2*m * xq + (m*m-1) * yq
    xp /= 1 + m*m
    yp /= 1 + m*m

    xp += x1
    yp += y1
  else
    xp = 2*x1 - xq
    yp = yq
  end

  puts "#{xp} #{yp}"

end