readlines.each{|line|
  x1,y1,x2,y2,xq,yq = line.split(",").map(&:to_f)
  x2 -= x1
  y2 -= y1
  r2 = Math.sqrt(x2**2+y2**2)
  xq -= x1
  yq -= y1
  rqct = (x2*xq+y2*yq)/r2
  xt = rqct*x2/r2
  yt = rqct*y2/r2
  puts "%.6f %6f" % [2 * xt - xq + x1, 2 * yt - yq + y1]
}