#include #define rep(i,n) for (int i=0; i < (n); i++) using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cout << std::fixed << std::setprecision(15); double a,b,c,d,e,f; cin>>a>>b>>c>>d>>e>>f; double det = a*e - b*d; double x = c*e - b*f; double y = -c*d + a*f; x = x / det; y = y / det; cout << x << " " << y << endl; }