#include<iostream>
using namespace std;

int main(void){
	int a,b,c,d,e,f;
	double x,y;
	while(cin >> a >> b >> c >> d >> e >> f){
		y = (f - c - e)/(a + b);
		x = (c/a) - (b * (f-c-e))/(a * ( a + b));
		cout << x << ' ' << y << endl;
	}
	return 0;
}