#include <iostream>
#include <cstdio>
using namespace std;
int main(){
	float a,b,c,d,e,f;
	float g,h,i,j,k,l,n,m,o,p,q,r;
	while(scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=EOF){
		g=a/d;
		a*=g*-1;
		b*=g*-1;
		c*=g*-1;
		h=b+e;
		i=c+f;
		j=i/h;
		k=e*j;
		l=f-k;
		n=l/d;
		cout<<n<<" "<<j<<endl;
	}
	return 0;
}