#include <stdio.h>
int main(void)
{
float a, b, c, d, e, f;
float x, y;
while(scanf("%f %f %f %f %f %f", &a
, &b
, &c
,&d
, &e
, &f
) ==6) {
x = (c*e - b*f) / (a*e - b*d);
y = (f - d*x) / e;
x *= 10000;
y *= 10000;
if(x >= 0)
{
x += 5;
}
else
{
x -= 5;
}
if(y >= 0)
{
y += 5;
}
else
{
y -= 5;
}
x /= 10000;
y /= 10000;
printf("%.3f %.3f\n\n", x
, y
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKQp7CglmbG9hdCBhLCBiLCBjLCBkLCBlLCBmOwoJZmxvYXQgeCwgeTsKCXdoaWxlKHNjYW5mKCIlZiAlZiAlZiAlZiAlZiAlZiIsICZhLCAmYiwgJmMgLCZkLCAmZSwgJmYpID09NikKCXsKCQl4ID0gKGMqZSAtIGIqZikgLyAoYSplIC0gYipkKTsKCQl5ID0gKGYgLSBkKngpIC8gZTsKCQl4ICo9IDEwMDAwOwoJCXkgKj0gMTAwMDA7CgkJaWYoeCA+PSAwKQoJCXsKCQkJeCArPSA1OwoJCX0KCQllbHNlCgkJewoJCQl4IC09IDU7CgkJfQoJCWlmKHkgPj0gMCkKCQl7CgkJCXkgKz0gNTsKCQl9CgkJZWxzZQoJCXsKCQkJeSAtPSA1OwoJCX0KCQl4IC89IDEwMDAwOwoJCXkgLz0gMTAwMDA7CgkJcHJpbnRmKCIlZiAlZlxuIiwgeCwgeSk7CgkJcHJpbnRmKCIlLjNmICUuM2ZcblxuIiwgeCwgeSk7Cgl9CglyZXR1cm4gMDsKfQo=