#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; d = b * b - 4 * a * c; d = sqrtl(d); if (b * b - 4 * a * c > 0) { sa = (-tb + d) / ta / 2; sb = (-tb - d) / 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))); } }