#include <bits/stdc++.h>
int main() {
  double n2, a, b, c, n1;
  scanf("%lf %lf %lf", &a, &b, &c);
  n1 = ((-b + pow((b * b - 4 * a * c), 0.5)) / (a * 2));
  n2 = ((-b - pow((b * b - 4 * a * c), 0.5)) / (a * 2));
  if (n1 >= n2)
    printf("%lf %lf", n1, n2);
  else
    printf("%lf %lf", n2, n1);
  return 0;
}
