#include using namespace std; #define int long long typedef pair P; int INF = 1e16+7; int mod = 1e9+7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { double a,b,c,d,e,f; cin >> a >> b >> c >> d >> e >> f; double x = (c*e-b*f)/(a*e-b*d); cout << fixed << setprecision(10) << x << " " << (c-a*x)/b <