output_description: For each data set, print x and y separated by a single space. Print the
  solution to three places of decimals. Round off the solution to three decimal
  places.
input_description: The input consists of several data sets, 1 line for each data set. In a data
  set, there will be a, b, c, d, e, f separated by a single space. The input
  terminates with EOF.
attempt: def equation(a, b, c, d, e, f, x):
      buff = a * e - b * d
      buff_a = a
  
      a = e / buff
      b = -b / buff
      d = -d / buff
      e = buff_a / buff
  
      x.append((a * c) + (b * f))
      x.append((d * c) + (e * f))
  
  
  count = 0
  a = []
  b = []
  c = []
  d = []
  e = []
  f = []
  
  while True:
      try:
          buff = input().split()
          a.append(float(buff[0]))
          b.append(float(buff[1]))
          c.append(float(buff[2]))
          d.append(float(buff[3]))
          e.append(float(buff[4]))
          f.append(float(buff[5]))
          count += 1
      except:
          break
  
  for i in range(count):
      ans = []
  
      equation(a[i], b[i], c[i], d[i], e[i], f[i], ans)
      print("{:.4f}".format(ans[0]), "{:.4f}".format(ans[1]))
  
problem_description: Simultaneous Equation
  
  Write a program which solve a simultaneous equation:  
    
  ax + by = c  
  dx + ey = f  
    
  The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b,
  c, d, e, f ≤ 1,000). You can suppose that given equation has a unique
  solution.
samples: [{"input": "1 2 3 4 5 6\n    2 -1 -2 -1 -1 -5", "output": "-1.000 2.000\n    1.000 4.000"}, {"input": "2 -1 -3 1 -1 -3\n    2 -1 -3 -9 9 27", "output": "0.000 3.000\n    0.000 3.000"}]