a, b, c, d, e, f = map(float, input().split()) det = a * e - b * d print((c * e - b * f) / det, (a * f - c * d) / det)