#include "bits/stdc++.h" using namespace std; // コンテスト中のみ //#define int long long #define ll long long #define rep(i,n) for(int i = 0; i < (n); i++) #define P pair #define ld long double ll INF = (1LL << 60); int MOD = 1000000007; void solve() { ld a, b, c, d, e, f; cin >> a >> b >> e >> c >> d >> f; ld det = a * d - b * c; ld x=0, y=0; x = (d * e - b * f) / det; y = (-c * e + a * f) / det; cout << fixed << setprecision(20) << endl; cout << x << " " << y << std::endl; } signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); int a, b, c, d, e, f; cin >> a >> b >> e >> c >> d >> f; double det = a * d - b * c; double x = 0, y = 0; x = (d * e - b * f) / det; y = (-c * e + a * f) / det; cout << fixed << setprecision(20) << endl; cout << x << " " << y << std::endl; return 0; }