#include <bits/stdc++.h>
int main() {
  int a, b, c;
  double x, y, q, p;
  scanf("%d%d%d", &a, &b, &c);
  x = b * b - (4 * a * c);
  q = (-b + sqrt(x)) / (2 * a);
  p = (-b - sqrt(x)) / (2 * a);
  if (q > p)
    printf("%0.12lf\n%0.12lf", q, p);
  else
    printf("%0.12lf\n%0.12lf", p, q);
  return 0;
}
