#include <bits/stdc++.h>
int main() {
  double a, b, c, d;
  scanf("%lf%lf%lf", &a, &b, &c);
  d = sqrt(b * b - 4 * a * c);
  printf("%.10f\n%.10f\n", (-b + d * fabs(a) / a) / 2 / a,
         (-b - d * fabs(a) / a) / 2 / a);
  return 0;
}
