#include <iostream>
using namespace std;
int main()
{
float a, b, c, d, e, f, dd, dx, dy, x, y;
cout<<"a=";cin>>a;
cout<<"b=";cin>>b;
cout<<"c=";cin>>c;
cout<<"d=";cin>>d;
cout<<"e=";cin>>e;
cout<<"f=";cin>>f;
dd = a*e - b*d;
if(a*e - b*d == 0) cout<<"date improprii";
else{
dx = c*e - b*f;
dy = a*f - c*d;
x = dx/dd;
y = dy/dd;
cout<<endl;
cout<<"x="<<x<<endl;
cout<<"y="<<y<<endl;
}
return 0;
}