#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (s); i < (int)(e); ++i) #define all(a) (a).begin(), (a).end() int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; cout << fixed << setprecision(15); cout << (c*e - b*f) / (a*e - b*d) << ' '; cout << (a*f - c*d) / (a*e - b*d) << '\n'; }