#include <iostream>
#include <math.h>
using namespace std;
int main() {
double a, b, c, x1, x2, x3, x4, t1, t2, d, D; bool log=false;
cin>>a;
cin>>b;
cin>>c;
if (a==0) {
if (b!=0) {
if (c==0) {cout<<"X=0";}
else {
if (c/b<0){
x1=sqrt(-(c/b));
x2=-sqrt(-(c/b));
cout<<"X1="<<x1<<"; X2="<<x2;
}
else {cout<<"Нет решений";}
}
}
else {
if (c!=0) {cout<<"Нет решений";}
else {cout<<"X любое";}
}
}
else{
D = (b * b - 4 * a * c);
if (D<0) {cout<<"Нет решений";}
else {
d=sqrt(D);
t1=( - b + d )/2.0 / a;
t2=( - b - d )/2.0 / a;
if (t1>0){
x1=sqrt(t1);
x2=-sqrt(t1);
cout<<"X1="<<x1<<"; X2="<<x2<<"; ";
log = true;
}
if (t2>0){
x3=sqrt(t2);
x4=-sqrt(t2);
if (log == true){cout<<"X3="<<x3<<"; X4="<<x4<<";";}
if (log == false){cout<<"X1="<<x3<<"; X2="<<x4<<";";}
}
}
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewogICAgZG91YmxlIGEsIGIsIGMsIHgxLCB4MiwgeDMsIHg0LCB0MSwgdDIsIGQsIEQ7IGJvb2wgbG9nPWZhbHNlOwogICAgY2luPj5hOwogICAgY2luPj5iOwogICAgY2luPj5jOwogICAgaWYgKGE9PTApIHsKICAgIAlpZiAoYiE9MCkgewogICAgCQlpZiAoYz09MCkge2NvdXQ8PCJYPTAiO30gCiAgICAJCWVsc2UgewogICAgCQkJaWYgKGMvYjwwKXsKICAgIAkJCXgxPXNxcnQoLShjL2IpKTsKCQkJCXgyPS1zcXJ0KC0oYy9iKSk7CgkJCQljb3V0PDwiWDE9Ijw8eDE8PCI7IFgyPSI8PHgyOwogICAgCQkJfQogICAgCQkJZWxzZSB7Y291dDw8ItCd0LXRgiDRgNC10YjQtdC90LjQuSI7fQog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