import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main
{
{
double matrix[][] = new double[3][2];
for (int i = 0; i < 2; ++i){
String[] params1
= bufferedReader.
readLine().
split(" "); for (int j = 0; j < 3; ++j){
matrix
[j
][i
] = Float.
parseFloat(params1
[j
]); }
}
double d = matrix[0][0] * matrix[1][1] - matrix[0][1] * matrix[1][0];
double d1 = matrix[2][0] * matrix[1][1] - matrix[2][1] * matrix[1][0];
double d2 = matrix[0][0] * matrix[2][1] - matrix[0][1] * matrix[2][0];
System.
out.
printf("%.3f\n%.3f\n", d1
/ d, d2
/ d
); }
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtUmVhZGVyOwogCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJQnVmZmVyZWRSZWFkZXIgYnVmZmVyZWRSZWFkZXIgPSBuZXcgQnVmZmVyZWRSZWFkZXIobmV3IElucHV0U3RyZWFtUmVhZGVyKFN5c3RlbS5pbikpOwogICAgICAgIGRvdWJsZSBtYXRyaXhbXVtdID0gbmV3IGRvdWJsZVszXVsyXTsKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IDI7ICsraSl7CiAgICAgICAgICAgIFN0cmluZ1tdIHBhcmFtczEgPSBidWZmZXJlZFJlYWRlci5yZWFkTGluZSgpLnNwbGl0KCIgIik7CiAgICAgICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgMzsgKytqKXsKICAgICAgICAgICAgICAgIG1hdHJpeFtqXVtpXSA9IEZsb2F0LnBhcnNlRmxvYXQocGFyYW1zMVtqXSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZG91YmxlIGQgPSBtYXRyaXhbMF1bMF0gKiBtYXRyaXhbMV1bMV0gLSBtYXRyaXhbMF1bMV0gK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