#include int main() { double a, b, c, d, e, f; scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f); printf("%.20lf %.20lf\n", (e * c - b * f) / (e * a - b * d), (d * c - a * f) / (b * d - a * e)); return 0; }