/** * @FileName f.cpp * @Author kanpurin * @Created 2020.05.16 04:00:21 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { long double a, b, c; cin >> a >> b >> c; if (a != 0) { if (b * b - 4 * a * c > 0) { cout << 2 << endl; long double x, y; if (b >= 0) { x = (-b - sqrtl(b * b - 4 * a * c)) / (2 * a); y = -b / a - x; } else { x = (-b + sqrtl(b * b - 4 * a * c)) / (2 * a); y = -b / a - x; } if (x < y) { cout << fixed << setprecision(20) << x << endl; cout << fixed << setprecision(20) << y << endl; } else { cout << fixed << setprecision(20) << y << endl; cout << fixed << setprecision(20) << x << endl; } } else if (b * b - 4 * a * c == 0) { cout << 1 << endl; cout << fixed << setprecision(20) << -b / (2 * a) << endl; } else { cout << 0 << endl; } } else if (b != 0) { cout << 1 << endl; cout << fixed << setprecision(20) << -c / b << endl; } else if (c != 0) { cout << 0 << endl; } else { cout << -1 << endl; } return 0; }