// yuki 955 ax^2+bx+c=0 // 2019.12.18 bal4u #include #include typedef long long ll; int main() { int a, b, c; ll d; double x1, x2; scanf("%d%d%d", &a, &b, &c); if (a == 0 && b == 0 && c == 0) { puts("-1"); return 0; } if (a == 0 && b == 0) { puts("0"); return 0; } if (a == 0) { puts("1"); printf("%.16lf\n", -(double)c/b); } else { d = (ll)b*b - 4*(ll)a*c; if (d < 0) puts("0"); else if (d == 0) { puts("1"); printf("%.16lf\n", -(double)b/(2*a)); } else { double t = sqrt((double)d); puts("2"); x1 = (-b-t)/(2*a), x2 = (-b+t)/(2*a); if (x1 <= x2) printf("%.16lf\n%.16lf\n", x1, x2); else printf("%.16lf\n%.16lf\n", x2, x1); } } return 0; }