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