import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); double a, b, c, x1, x2, x3, x4, t1, t2, d, D; boolean log=false;
a=in.nextDouble();
b=in.nextDouble();
c=in.nextDouble();
if (a==0) {
if (b!=0) {
if (c
==0) {System.
out.
printf("X=0;");} else {
if (c/b<0){
System.
out.
printf("X1=%f; X2=%f; ",x1,x2
); }
else {System.
out.
printf("Нет решений");} }
}
else {
if (c
!=0) {System.
out.
printf("Нет решений");} else {System.
out.
printf("X любое");}
}
}
else{
D = (b * b - 4 * a * c);
if (D
<0) {System.
out.
printf("Нет решений");} else {
t1=( - b + d )/2.0 / a;
t2=( - b - d )/2.0 / a;
if (t1>0){
System.
out.
printf("X1=%f; X2=%f; ",x1,x2
); log = true;
}
if (t2>0){
if (log
== true){System.
out.
printf("X3=%f; X4=%f; ",x3,x4
);} if (log
== false){System.
out.
printf("X1=%f; X2=%f; ",x3,x4
);} }
}
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJZG91YmxlIGEsIGIsIGMsIHgxLCB4MiwgeDMsIHg0LCB0MSwgdDIsIGQsIEQ7IGJvb2xlYW4gbG9nPWZhbHNlOwoJCWE9aW4ubmV4dERvdWJsZSgpOwoJCWI9aW4ubmV4dERvdWJsZSgpOwoJCWM9aW4ubmV4dERvdWJsZSgpOwoJICAgIGlmIChhPT0wKSB7CgkgICAgCWlmIChiIT0wKSB7CgkgICAgCQlpZiAoYz09MCkge1N5c3RlbS5vdXQucHJpbnRmKCJYPTA7Iik7fSAKCSAgICAJCWVsc2UgewoJICAg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