#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, delta, x1, x2;
  cin >> a >> b >> c;
  delta = b * b - 4.0 * a * c;
  delta = sqrt(delta);
  x1 = (-b + delta) / (2.0 * a);
  x2 = (-b - delta) / (2.0 * a);
  if (x1 < x2) swap(x1, x2);
  cout << fixed << setprecision(8) << x1 << endl
       << fixed << setprecision(8) << x2 << endl;
  return 0;
}
