while True:

    try:

        a, b, c, d, e, f = list(map(int, input().split()))

        tb, tc = d*b, d*c

        te, tf = a*e, a*f

        y = (tc-tf)/(tb-te)

        x = (c-(y*b))/a

        print(("{0:.3f} {1:.3f}".format(x, y)))



    except:

        break
while True:

    try:

        a, b, c, d, e, f = list(map(int, input().split()))

    except:

        break

    y = (c*d-f*a) / (b*d-e*a)

    x = (c - b*y) / a

    print(("{:.3f} {:.3f}".format(x, y)))
while True:
    try:
        a, b, c, d, e, f = list(map(int, input().split()))
        tb, tc = d * b, d * c
        te, tf = a * e, a * f
        y = (tc - tf) / (tb - te)
        x = (c - (y * b)) / a
        print(("{0:.3f} {1:.3f}".format(x, y)))
    except:
        break

while True:
    try:
        a, b, c, d, e, f = list(map(int, input().split()))
    except:
        break
    y = (c * d - f * a) / (b * d - e * a)
    x = (c - b * y) / a
    print(("{:.3f} {:.3f}".format(x, y)))

-        tb, tc = d * b, d * c -        te, tf = a * e, a * f -        y = (tc - tf) / (tb - te) -        x = (c - (y * b)) / a -        print(("{0:.3f} {1:.3f}".format(x, y))) +    y = (c * d - f * a) / (b * d - e * a) +    x = (c - b * y) / a +    print(("{:.3f} {:.3f}".format(x, y)))