#include<cstdio>
using namespace std;

int main(){
	
	double a,b,c,d,e,f;
	
	while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f) != -1){
		
		double del = 1/(a*e - b*d);
		printf("del:%lf\n",del);
		printf("%.3lf %.3lf\n",e*c*del-b*f*del,-d*c*del+a*f*del);
	}
	
	return 0;
}