#include<stdio.h>
int main(void){
    double a,b,c,d,e,f,x,y,box1,box2,box3,box4;
    while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
    box1=c*d;
    box2=a*f;
    box1=box1-box2;
    box3=b*d;
    box4=a*e;
    box2=box3-box4;
    y=box1/box2;
    box3=b*y;
    box4=c-box3;
    x=box4/a;
    x=x*10000+4;
    x=x/10000;
    y=y*10000+4;
    y=y/10000;
    }
return 0;
}