#include <bits/stdc++.h>
using namespace std;
#define debug(x) cerr << #x << " = " << x << endl;
#define int long long
tuple<int,double,double> ghpt(double a, double b, double c, double a1, double b1, double c1){
// value.first = 0 or 1 or 2 lan luot tuong ung vo nghiem, 1 nghiem, vo so nghiem
double x, y;
if(a == 0){
y = c / b;
if(a1 == 0){
if(abs(y - c1 / b1) < 1e-6) return make_tuple(2, 0, 0);
return make_tuple(0, 0, 0);
}
x = (c1 - b1 * y) / a1;
return make_tuple(1, x, y);
}
if(a1 == 0){
y = c1 / b1;
x = (c - b * y) / a;
return make_tuple(1, x, y);
}
double u = a1 * b - a * b1;
double v = a1 * c - a * c1;
if(u == 0){
if(v == 0) return make_tuple(2, 0, 0);
return make_tuple(0, 0, 0);
}
y = v / u;
x = (c - b * y) / a;
return make_tuple(1, x, y);
}
signed main(){
FILE *pFile = fopen("input.txt", "r");
if(pFile != nullptr) freopen("input.txt", "r", stdin);
ios_base::sync_with_stdio(false);cin.tie(nullptr);
double a, b, c, a1, b1, c1;
cin >> a >> b >> c >> a1 >> b1 >> c1;
int u;
double x, y;
tie(u, x, y) = ghpt(a, b, c, a1, b1, c1);
if(u == 0) cout << "VONGHIEM";
else if(u == 2) cout << "VOSONGHIEM";
else{
cout << fixed << setprecision(2);
cout << x << " " << y;
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgZGVidWcoeCkgY2VyciA8PCAjeCA8PCAiID0gIiA8PCB4IDw8IGVuZGw7CiNkZWZpbmUgaW50IGxvbmcgbG9uZwp0dXBsZTxpbnQsZG91YmxlLGRvdWJsZT4gZ2hwdChkb3VibGUgYSwgZG91YmxlIGIsIGRvdWJsZSBjLCBkb3VibGUgYTEsIGRvdWJsZSBiMSwgZG91YmxlIGMxKXsKICAgIC8vIHZhbHVlLmZpcnN0ID0gMCBvciAxIG9yIDIgbGFuIGx1b3QgdHVvbmcgdW5nIHZvIG5naGllbSwgMSBuZ2hpZW0sIHZvIHNvIG5naGllbQogICAgZG91YmxlIHgsIHk7CiAgICBpZihhID09IDApewogICAgICAgIHkgPSBjIC8gYjsKICAgICAgICBpZihhMSA9PSAwKXsKICAgICAgICAgICAgaWYoYWJzKHkgLSBjMSAvIGIxKSA8IDFlLTYpIHJldHVybiBtYWtlX3R1cGxlKDIsIDAsIDApOwogICAgICAgICAgICByZXR1cm4gbWFrZV90dXBsZSgwLCAwLCAwKTsKICAgICAgICB9CiAgICAgICAgeCA9IChjMSAtIGIxICogeSkgLyBhMTsKICAgICAgICByZXR1cm4gbWFrZV90dXBsZSgxLCB4LCB5KTsKICAgIH0KICAgIGlmKGExID09IDApewogICAgICAgIHkgPSBjMSAvIGIxOwogICAgICAgIHggPSAoYyAtIGIgKiB5KSAvIGE7CiAgICAgICAgcmV0dXJuIG1ha2VfdHVwbGUoMSwgeCwgeSk7CiAgICB9CiAgICBkb3VibGUgdSA9IGExICogYiAtIGEgKiBiMTsKICAgIGRvdWJsZSB2ID0gYTEgKiBjIC0gYSAqIGMxOwogICAgaWYodSA9PSAwKXsKICAgICAgICBpZih2ID09IDApIHJldHVybiBtYWtlX3R1cGxlKDIsIDAsIDApOwogICAgICAgIHJldHVybiBtYWtlX3R1cGxlKDAsIDAsIDApOwogICAgfQogICAgeSA9IHYgLyB1OwogICAgeCA9IChjIC0gYiAqIHkpIC8gYTsKICAgIHJldHVybiBtYWtlX3R1cGxlKDEsIHgsIHkpOwp9CnNpZ25lZCBtYWluKCl7CiAgICBGSUxFICpwRmlsZSA9IGZvcGVuKCJpbnB1dC50eHQiLCAiciIpOwogICAgaWYocEZpbGUgIT0gbnVsbHB0cikgZnJlb3BlbigiaW5wdXQudHh0IiwgInIiLCBzdGRpbik7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTtjaW4udGllKG51bGxwdHIpOwogICAgZG91YmxlIGEsIGIsIGMsIGExLCBiMSwgYzE7CiAgICBjaW4gPj4gYSA+PiBi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