#include #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; int main() { double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; double det = a * e - b * d; double x = (e * c - b * f) / det; double y = (a * f - d * c) / det; cout << fixed << setprecision(8) << x << " " << y << "\n"; }