#include #define rep(i, n) for (ll i = 0; i < (n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using namespace std; template using vec = std::vector; int main() { ll a, b, c; cin >> a >> b >> c; if(!a&&!b&&!c){ cout << -1 << endl; return 0; } else if(!a&&!b){ cout << 0 << endl; return 0; } else if(!a){ cout << 1 << endl; long double ans = c/b; cout << fixed << setprecision(15); cout << ans << endl; return 0; } ll D = b * b - 4 * a * c; if (D > 0) { cout << 2 << endl; if(-b>=0){ long double bigans = (-b+sqrtl(b*b-4*a*c))/(2*a); long double smlans = (c/a)/bigans; cout << fixed << setprecision(15); cout << smlans << endl; cout << bigans << endl; } else { long double smlans = (-b-sqrtl(b*b-4*a*c))/(2*a); long double bigans = (c/a)/smlans; cout << fixed << setprecision(15); cout << smlans << endl; cout << bigans << endl; } } else if (D == 0) { cout << 1 << endl; long double ans = -b/(2*a); cout << fixed << setprecision(15); cout << ans << endl; } else { cout << 0 << endl; } }