#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; double x = c * e - b * f; double y = -c * d + a * f; x /= (a*e - b*d); y /= (a*e - b*d); cout << fixed; cout.precision(4); cout << x << ' ' << y << '\n'; return 0; }