/** * @FileName a.cpp * @Author kanpurin * @Created 2020.08.21 21:24:09 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int a,b,c,d,e,f;cin >> a >> b >> c >> d >> e >> f; double y = (double)(c * d - a * f) / (b * d - a * e); double x = (double)(c * e - b * f) / (a * e - b * d); printf("%.10f %.10f\n",x,y); return 0; }