while line = STDIN.gets
  line.chomp!
  x1, y1, x2, y2, xq, yq = line.split(',').map { |item| item.to_f }
  vx=x2-x1
  vy=y2-y1
  t=(vx*(xq-x1)+vy*(yq-y1))/(vx*vx+vy*vy)
  xp=x1+t*vx
  yp=y1+t*vy
  x=2*xp-xq
  y=2*yp-yq
  puts "#{x} #{y}"
end