#include <iostream> #include <string> #include <algorithm> #include <vector> #include <map> #include <set> #include <queue> #include <cmath> #include <numeric> #include <utility> #include <iomanip> using namespace std; using int64 = long long; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<<fixed<<setprecision(20);};}aaa; int main() { double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; double y = (c*d - a*f) / (b*d - a*e); double x = (c - b*y) / a; cout << x << " " << y << endl; }