#include #include #include int main(void) { long a, b, c; double s1, s2; scanf("%ld%ld%ld", &a, &b, &c); if (a == 0) { if (b == 0) { if (c == 0) { printf("-1\n"); return EXIT_SUCCESS; } printf("0\n"); return EXIT_SUCCESS; } s1 = (double)-c/b; printf("1\n%.15lf\n", s1); return EXIT_SUCCESS; } long long D = (long long)b*b - (long long)4*a*c; if (D > 0) { s1 = (double)-b/(2*a) - sqrt(D)/(2*a); s2 = (double)-b/(2*a) + sqrt(D)/(2*a); printf("2\n%.15lf\n%.15lf\n", s1, s2); } else if (D == 0) { s1 = (double)-b/(2*a); printf("1\n%.15lf\n", s1); } else { printf("0\n"); } return EXIT_SUCCESS; }