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).map{ |x| x.round(4) }.to_s.gsub(/[[a-z][A-Z]\[\]\,]/, "")
end