a, b, c, d, e, f = map(int, input().split()) x = (f - c*e/b) / (d - a*e/b) y = (c - a*x) / b print(x, y)