require 'matrix'

while input = gets do
  a, b, c, d, e, f = input.split.map(&:to_f)
  m = Matrix[[a, b], [d, e]]
  v = Vector[c, f]
  puts (m.inv * v).to_a.map{ |x| sprintf("%.3f", x.to_f)}.to_s.gsub(/[\[\]\,\"]/, "")
end