#include #include #include #include #include using namespace std; int main() { long long int a, b, c; scanf("%lld%lld%lld", &a, &b, &c); if (a == 0) { if (b == 0) { if (c == 0) printf("-1\n"); else printf("0\n"); } else printf("1\n%.20lf\n", (double)((long double)c / (long double) -b)); } else { long double ta(a), tb(b), tc(c), d, sa, sb, l, r, mid; d = b * b - 4 * a * c; if (b * b - 4 * a * c > 0) { l = -d; r = d; for (int i = 0; i < 1000; i++) { mid = (l + r) / 2; if (mid * mid > d) r = mid; else l = mid; } sa = (-tb + l) / ta / 2; sb = (-tb - l) / ta / 2; if (sa < sb) { cout << 2 << '\n'; cout << setprecision(80) << sa << '\n'; cout << setprecision(80) << sb << '\n'; } else { cout << 2 << '\n'; cout << setprecision(80) << sb << '\n'; cout << setprecision(80) << sa << '\n'; } } else if (b * b - 4 * a * c < 0) printf("0\n"); else printf("1\n%.20lf\n", (double) (-tb / (ta * 2))); } }