#include #include #include #include #define REP(i, a, n) for(ll i = ((ll) a); i < ((ll) n); i++) #define EPS 1e-4 using namespace std; typedef long long ll; double A, B, C; double f(double x) { return x * x * x + A * x * x + B * x + C; } double solve(double l, double h) { double m; if(f(l) > 0) swap(l, h); while(1) { m = (l + h) / 2.0; if(abs(f(m)) < EPS) break; if(f(m) > 0) h = m; else l = m; } return m; } int main(void) { cin >> A >> B >> C; double p = (-A - sqrt(A * A - B * 3.0)) / 3.0; double q = (-A + sqrt(A * A - B * 3.0)) / 3.0; double a = solve(-1e10, p); double b = solve(p, q); double c = solve(q, 1e10); cout << round(a) << " " << round(b) << " " << round(c) << endl; }