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