#include #include #include #include using namespace std; double bs(double pos, double neg, double a, double b, double c, double eps) { assert(a*pos*pos+b*pos+c>0); assert(a*neg*neg+b*neg+c<0); for (int i = 0; i < 1000; i++) { double m = (pos + neg) / 2; if (a*m*m+b*m+c < 0) neg = m; else pos = m; } return (pos+neg)/2; } int main() { long long a, b, c; cin >> a >> b >> c; cout << setprecision(16); if (a == 0) { if (b == 0) { if (c == 0) cout << "-1\n"; else cout << "0\n"; } else { cout << "1\n" << -(double)c/b << endl; } } else { long long d = b * b - 4 * a * c; if (d == 0) { cout << "1\n" << -b/2.0/a << endl; } else if (d < 0) { cout << "0\n"; } else { double v = -b/2.0/a, x = bs(v-d+1, v, a, b, c, 1e-11), y = bs(v+d+1, v, a, b, c, 1e-11); cout << "2\n" << x << endl << y << endl; } } }