#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef uint64_t ull; typedef pair P; constexpr double PI = 3.1415926535897932; // acos(-1) constexpr double EPS = 1e-9; constexpr int INF = 1001001001; constexpr int mod = 1000000007; // constexpr int mod = 998244353; #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); using ld = long double; ll a, b, c; cin >> a >> b >> c; if(a == 0 && b == 0){ if(c == 0) cout << -1 << endl; else cout << 0 << endl; return 0; } if(a == 0){ ld ans = -c; ans /= b; cout << 1 << endl; cout << fixed << setprecision(17); cout << ans << endl; return 0; } ll D = b * b - 4 * a * c; constexpr ld eps = 1e-14; if(D > 0){ cout << 2 << endl; cout << fixed << setprecision(17); if(b > 0){ ld ans1 = -b; ans1 -= sqrt(D); ans1 /= (ld)2 * a; ld ans2 = (ld)c / (a * ans1); cout << ans1 << endl; cout << ans2 << endl; } else{ ld ans2 = -b; ans2 += sqrt(D); ans2 /= (ld)2 * a; ld ans1 = (ld)c / (a * ans2); cout << ans1 << endl; cout << ans2 << endl; } } else if(D == 0){ cout << 1 << endl; ld ans = -b; ans /= 2; ans /= a; cout << fixed << setprecision(17); cout << ans << endl; } else cout << 0 << endl; }