#include #include #include #include #include #include #include #include #include using namespace std; int main(){ double a,b,c,d,e,f; cin >> a >> b >> c >> d >> e >> f; double x=(c/b-f/e)/(a/b-d/e); double y=(c/a-f/d)/(b/a-e/d); cout << fixed << setprecision(15) << x << " " << y << endl; return 0; }