while line = gets
  puts line
  a, b, c, d, e, f = line.split.map(&:to_f)
  x = (c * e - b * f) / (a * e - b * d)
  y = (a * f - c * d) / (a * e - b * d)
  puts format('%.3f', x.round(3) + 0) + "\s" + format('%.3f', y.round(3) + 0)
end