#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;
}