#include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef unsigned long long ULLONG; typedef long long LLONG; static const LLONG MOD_NUM = 1000000007; //998244353; template static void get(_T& a) { std::cin >> a; } template static void get(_T& a, _T& b) { std::cin >> a >> b; } template static void get(_T& a, _T& b, _T& c) { std::cin >> a >> b >> c; } template static _T tp_abs(_T a) { if (a < (_T)0) { a *= (_T)-1; } return a; } static void A(); int main() { A(); fflush(stdout); return 0; } static void A() { double a, b, c, d, e, f; get(a, b, c); get(d, e, f); double y = (d * c - a * f) / (b * d - a * e); double x = (f - e * y) / d; printf("%.8lf %.8lf\n", x, y); }