#include <bits/stdc++.h>
using namespace std;
int main(void) {
  double a, b, c, D, x1, x2;
  scanf("%lf", &a);
  scanf("%lf", &b);
  scanf("%lf", &c);
  D = b * b - 4 * a * c;
  x2 = ((-1) * sqrt(D) - b) / (a * 2);
  x1 = (sqrt(D) - b) / (a * 2);
  if (x1 > x2) swap(x1, x2);
  printf("%0.10f\n%0.10f", x2, x1);
  return 0;
}
