#include <iostream>
#include <cmath> // Thư viện để sử dụng hàm sqrt
#include <iomanip> // Thư viện để định dạng số thập phân
using namespace std;
int main() {
double a, b, c;
cin >> a >> b >> c;
if (a == 0) {
// Phương trình trở thành bậc nhất
if (b == 0) {
if (c == 0) {
cout << "VO SO NGHIEM" << endl;
} else {
cout << "VO NGHIEM" << endl;
}
} else {
// Tính nghiệm của phương trình bậc nhất
double x = -c / b;
cout << fixed << setprecision(2) << x << endl;
}
} else {
// Phương trình bậc hai, tính delta
double delta = b * b - 4 * a * c;
if (delta < 0) {
cout << "VO NGHIEM" << endl;
} else if (delta == 0) {
// Nghiệm kép
double x = -b / (2 * a);
cout << fixed << setprecision(2) << x << endl;
} else {
// Hai nghiệm phân biệt
double x1 = (-b + sqrt(delta)) / (2 * a);
double x2 = (-b - sqrt(delta)) / (2 * a);
if (x1 < x2) swap(x1, x2); // Đảm bảo x1 là nghiệm lớn hơn
cout << fixed << setprecision(2) << x1 << " " << x2 << endl;
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+ICAgICAvLyBUaMawIHZp4buHbiDEkeG7gyBz4butIGThu6VuZyBow6BtIHNxcnQKI2luY2x1ZGUgPGlvbWFuaXA+ICAgLy8gVGjGsCB2aeG7h24gxJHhu4MgxJHhu4tuaCBk4bqhbmcgc+G7kSB0aOG6rXAgcGjDom4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGRvdWJsZSBhLCBiLCBjOwogICAgY2luID4+IGEgPj4gYiA+PiBjOwoKICAgIGlmIChhID09IDApIHsKICAgICAgICAvLyBQaMawxqFuZyB0csOsbmggdHLhu58gdGjDoG5oIGLhuq1jIG5o4bqldAogICAgICAgIGlmIChiID09IDApIHsKICAgICAgICAgICAgaWYgKGMgPT0gMCkgewogICAgICAgICAgICAgICAgY291dCA8PCAiVk8gU08gTkdISUVNIiA8PCBlbmRsOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgY291dCA8PCAiVk8gTkdISUVNIiA8PCBlbmRsOwogICAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gVMOtbmggbmdoaeG7h20gY+G7p2EgcGjGsMahbmcgdHLDrG5oIGLhuq1jIG5o4bqldAogICAgICAgICAgICBkb3VibGUgeCA9IC1jIC8gYjsKICAgICAgICAgICAgY291dCA8PCBmaXhlZCA8PCBzZXRwcmVjaXNpb24oMikgPDwgeCA8PCBlbmRsOwogICAgICAgIH0KICAgIH0gZWxzZSB7CiAgICAgICAgLy8gUGjGsMahbmcgdHLDrG5oIGLhuq1jIGhhaSwgdMOtbmggZGVsdGEKICAgICAgICBkb3VibGUgZGVsdGEgPSBiICogYiAtIDQgKiBhICogYzsKICAgICAgICBpZiAoZGVsdGEgPCAwKSB7CiAgICAgICAgICAgIGNvdXQgPDwgIlZPIE5HSElFTSIgPDwgZW5kbDsKICAgICAgICB9IGVsc2UgaWYgKGRlbHRhID09IDApIHsKICAgICAgICAgICAgLy8gTmdoaeG7h20ga8OpcAogICAgICAgICAgICBkb3VibGUgeCA9IC1iIC8gKDIgKiBhKTsKICAgICAgICAgICAgY291dCA8PCBmaXhlZCA8PCBzZXRwcmVjaXNpb24oMikgPDwgeCA8PCBlbmRsOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIC8vIEhhaSBuZ2hp4buHbSBwaMOibiBiaeG7h3QKICAgICAgICAgICAgZG91YmxlIHgxID0gKC1iICsgc3FydChkZWx0YSkpIC8gKDIgKiBhKTsKICAgICAgICAgICAgZG91YmxlIHgyID0gKC1iIC0gc3FydChkZWx0YSkpIC8gKDIgKiBhKTsKICAgICAgICAgICAgaWYgKHgxIDwgeDIpIHN3YXAoeDEsIHgyKTsgIC8vIMSQ4bqjbSBi4bqjbyB4MSBsw6AgbmdoaeG7h20gbOG7m24gaMahbgogICAgICAgICAgICBjb3V0IDw8IGZpeGVkIDw8IHNldHByZWNpc2lvbigyKSA8PCB4MSA8PCAiICIgPDwgeDIgPDwgZW5kbDsKICAgICAgICB9CiAgICB9CgogICAgcmV0dXJuIDA7Cn0K