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