#include
#include
using namespace std;
int main()
{
double a, b, c, x1, x2, d;
do{
cout
cin >> a;
if (a == 0) {
cout
}
} while (a == 0);
cout
cin >> b;
cout
cin >> c;
d = b * b - 4. * a * c;
if (d < 0) {
cout
return 1;
}
else if (d == 0) {
cout
return 2;
}
else {
cout
return 0;
}
}