#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
	int a,b,c,d,e,f;
	double x,y;
	while(cin>>a>>b>>c>>d>>e>>f)
	{
               
               if (a*e == b*d)
               {
                   cout<<'No Answer'<<endl; 
                   continue;
               }
		x= (c*e-b*f)/(a*e-b*d);
		y= (c*d-a*f)/(b*d-a*e);


               if(x == -0.0){ x = 0.0;}
               if(y == -0.0){ y = 0.0; }
	       
               cout<<setprecision(3)<<fixed;
	       cout<<x<<" "<<y<<endl;
	}
	return 0;
}