#include <bits/stdc++.h>
using namespace std;
double a, b, c, d, e;
int main() {
  cin >> a >> b >> c;
  d = sqrt(b * b - 4.0 * a * c);
  e = 2.0 * a;
  if (a > 0) {
    printf("%.9f\n", (-b + d) / e);
    printf("%.9f\n", (-b - d) / e);
  } else {
    printf("%.9f\n", (-b - d) / e);
    printf("%.9f\n", (-b + d) / e);
  }
  return 0;
}
