#include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; int bt = b; a *= e; b *= e; c *= e; d *= bt; e *= bt; f *= bt; double x = (c - f) / (a - d); double y = (c - a * x) / b; cout << fixed << setprecision(16) << x << ' ' << y << endl; return 0; }