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