#include #include using namespace std; int main(){ double a,b,c,d,e,f;cin>>a>>b>>c>>d>>e>>f; cout << fixed << setprecision(10) << c/a - b*(a*f-d*c)/(a*(a*e-d*b)) << " " << (a*f-d*c)/(a*e-d*b) << endl; }