#include <bits/stdc++.h>
typedef long long LL;
const double INF = 1e100;
const int oo = ~0u >> 2;
const double pi = acos(-1.0);
const double EPS = 1e-8;
const int MAXN = 100033;
double a, b, c;
double x11, x2;
int main() {
  scanf("%lf%lf%lf", &a, &b, &c);
  x11 = sqrt(b * b - 4.0 * a * c);
  if (a > 0) {
    x2 = (-b - x11) / 2.0 / a;
    x11 = (-b + x11) / 2.0 / a;
  } else {
    x2 = (-b + x11) / 2.0 / a;
    x11 = (-b - x11) / 2.0 / a;
  }
  printf("%.012lf\n%.012lf\n", x11, x2);
  return 0;
}
