#include <iostream>
#include <cmath>
using namespace std;
int main() {
    double a,b,c,y;
    cout<< "For y= ax^2+bx+c, input a";
    cin>>a;
    cout<< "For y= ax^2+bx+c, input b";
    cin>>b;
    cout<< "For y= ax^2+bx+c, input c";
    cin>>c;
    cout<< "For y= ax^2+bx+c, input y";
    cin>>y;
    double k=c-y;
    double D=pow(b,2)-(4*a*k);
    if (D<0) {
        cout<< "no real solution";
    }
    else if (D==0){
        double x=(-b/(2*a));
        cout<<"one real solution"<<endl;
        cout<<x;
    }
    else {
        double x2=((-b+pow(D,0.5))/(2*a));
        double x1=((-b-pow(D,0.5))/(2*a));
        cout<<"two real solutions"<<endl;
        cout<<x1<<endl<<x2;
    }
return 0;

}
