#include #define INF 2000000000000000000 #define ll long long using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; double x = ((c * e - f * b) * 1.0) / (a * e - b * d); double y = ((-c * d + f * a) * 1.0) / (a * e - b * d); cout << x << ' ' << y << "\n"; }