#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b, c, d, D;
double x1,x2,x3;
while(cin>>a>>b>>c>>d){
D=b*b-4*a*(c-d);
if(D>0)
{
x1=(-b-sqrt(D))/(2*a);
x2=(-b+sqrt(D))/(2*a);
cout<<x1<<", "<<x2<<"; ";
}
else
{
if(D==0)
{
x3=(-b)/(2*a);
cout<<x3<<"; ";
}
else cout<<"нет корней"<<"; ";
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSBhLCBiLCBjLCBkLCBEOwoJZG91YmxlIHgxLHgyLHgzOwoJd2hpbGUoY2luPj5hPj5iPj5jPj5kKXsKCQlEPWIqYi00KmEqKGMtZCk7CgkJaWYoRD4wKQoJCXsKCQkJeDE9KC1iLXNxcnQoRCkpLygyKmEpOwoJCQl4Mj0oLWIrc3FydChEKSkvKDIqYSk7CgkJCWNvdXQ8PHgxPDwiLCAiPDx4Mjw8IjsgIjsKCQl9CgkJZWxzZQoJCXsKCQkJaWYoRD09MCkKCQkJewoJCQkJeDM9KC1iKS8oMiphKTsKCQkJCWNvdXQ8PHgzPDwiOyAiOwoJCQl9CgkJCWVsc2UgY291dDw8ItC90LXRgiDQutC+0YDQvdC10LkiPDwiOyAiOwoJCX0KCX0KCXJldHVybiAwOwp9