#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); double a, b, c; cin >> a >> b >> c; if (a == 0) { if (b != 0) { cout << 1 << endl; cout << fixed << setprecision(12) << -c/b << endl; } else { if (c == 0) cout << -1 << endl; else cout << 0 << endl; } } else { double d = b*b - 4*a*c; if (d < 0) { cout << 0 << endl; } else if (d == 0) { cout << 1 << endl; cout << fixed << setprecision(12) << -b/(2*a) << endl; } else { cout << 2 << endl; double x1, x2; if (b >= 0) { x1 = (-2 * c) / (b + sqrt(d)); x2 = (-b - sqrt(d)) / (2 * a); } else { x1 = (-b + sqrt(d)) / (2 * a); x2 = (-2 * c) / (b - sqrt(d)); } cout << fixed << setprecision(12) << min(x1,x2) << endl; cout << fixed << setprecision(12) << max(x1,x2) << endl; } } return 0; }