#include using namespace std; using R = long double; constexpr R eps = 1e-15; vector solve_quadratic_equation(R a, R b, R c) { R d = b * b - 4 * a * c; if (d < -eps) { return {}; } if (d < eps) { return {-b / (2 * a)}; } if (b < 0) { return { (b * b - d) / (-b + sqrt(d)) / (2 * a), (-b + sqrt(d)) / (2 * a) }; } else { return { (-b - sqrt(d)) / (2 * a), (b * b - d) / (-b - sqrt(d)) / (2 * a) }; } } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(20); long long a, b, c; cin >> a >> b >> c; if (a == 0) { if (b == 0) { if (c == 0) { cout << "-1\n"; } else { cout << "0\n"; } } else { cout << "1\n"; cout << (R)-c / b; } } else { auto res = solve_quadratic_equation(a, b, c); sort(begin(res), end(res)); cout << res.size() << '\n'; for (auto e : res) { cout << e << '\n'; } } }