#include <bits/stdc++.h>
using namespace std;
long long bc[1000][1000];
int main() {
  double a, b, c;
  scanf("%lf %lf %lf", &a, &b, &c);
  double x = (-b + sqrt(b * b - 4 * a * c)) / 2 / a,
         y = (-b - sqrt(b * b - 4 * a * c)) / 2 / a;
  printf("%.12lf\n%.12lf", max(x, y), min(x, y));
  return 0;
}
