#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, ans, ans2;
  scanf("%lf %lf %lf", &a, &b, &c);
  ans = (-b + sqrt(b * b - 4 * a * c)) / 2 / a;
  ans2 = (-b - sqrt(b * b - 4 * a * c)) / 2 / a;
  if (ans2 < ans) printf("%.9lf\n%.9lf\n", ans, ans2);
  if (ans <= ans2) printf("%.9lf\n%.9lf\n", ans2, ans);
  return 0;
}
