#include #include #include #include #include #include #include #include #include #define rep(i,n) for(int i=0;i inline bool chmax(T &a,T& b){if(a < b){a = b; return true;} else return false;}; template inline bool chmin(T &a,T& b){if(a > b){a = b; return true;} else return false;}; int main(){ ld a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; ld x, y; x = (b*f - e*c) / (b*d - a*e); y = (c - a*x) / b; cout << fixed << setprecision(6) << x << ' ' << y << endl; } /* ax + by = c y = (c - ax) / b dx + ey = f dx + e(c - ax)/b = f dx - aex/b = f - ec/b (d - ae/b)x = f - ec/b */