#include #include #include using namespace std; using ll = long long; int main() { ll a, b, c; cin >> a >> b >> c; if (a < 0) { a *= -1; b *= -1; c *= -1; } if (a == b && b == c && c == 0) { cout << -1 << endl; return 0; } cout << fixed << setprecision(20); if (a == 0) { if (b == 0) { cout << 0 << endl; return 0; } cout << 1 << endl; cout << (double)-c / b << endl; return 0; } ll D = b * b - 4 * a * c; if (D < 0) { cout << 0 << endl; return 0; } if (D == 0) { cout << 1 << endl; cout << (double)(-b) / (2 * a) << endl; return 0; } if (b > 0) { cout << 2 << endl; double x1 = (-b - sqrt(D)) / (2 * a); cout << x1 << endl; cout << c / a / x1 << endl; } else { cout << 2 << endl; double x1 = (-b + sqrt(D)) / (2 * a); cout << c / a / x1 << endl; cout << x1 << endl; } return 0; }