require 'matrix'
$stdin = DATA if $stdin.eof?
ARGF.each_line do |line|
  a, b, c, d, e, f = line.split.map(&:to_r)

  mat_a = Matrix[ [a, b], [d, e]].inverse
  mat_b = Matrix[ [c], [f]]

  mat_s = mat_a * mat_b
  puts mat_s.column(0).to_a.map(&:to_f).map{|e| "%4.4f" % e.round(3)}.join("\s")
end