#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  double delta = b * b - 4.0 * a * c;
  if (delta == 0.0)
    cout << -b / (2 * a) << endl;
  else {
    double x1 = (-b + sqrt(delta)) / (2 * a);
    double x2 = (-b - sqrt(delta)) / (2 * a);
    printf("%lf\n", max(x1, x2));
    printf("%lf\n", min(x1, x2));
  }
  return 0;
}
