#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main() {
	double a, b, c, d, e, f, x, y;
	while (!cin.eof()){
		cin >> a >> b >> c >> d >> e >> f;
		a *= e;
		c *= e;
		d *= b;
		f *= b;
		b *= e;
		e = b;
		if (c >= f) {
			x = (c - f) / (a - d);
		}
		else x = (f - c) / (d - a);
		y = (c - a*x) / b;
		if (x < 10){
			if (y < 10)
				printf("%1.3lf %1.3lf\n", x, y);
			else if (y < 100)
				printf("%1.3lf %2.3lf\n", x, y);
			else if (y < 1000)
				printf("%1.3lf %3.3lf\n", x, y);
		}
		else if (x < 100) {
			if (y < 10)
				printf("%1.3lf %1.3lf\n", x, y);
			else if (y < 100)
				printf("%2.3lf %2.3lf\n", x, y);
			else if (y < 1000)
				printf("%3.3lf %3.3lf\n", x, y);
		}
		else if (x < 1000)
		{
			if (y < 10)
				printf("%1.3lf %1.3lf\n", x, y);
			else if (y < 100)
				printf("%2.3lf %2.3lf\n", x, y);
			else if (y < 1000)
				printf("%3.3lf %3.3lf\n", x, y);
		}
	}
}