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