#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  double x, y;
  cin >> a >> b >> c;
  x = (-b + sqrt(b * b - 4.0 * c * a)) / (2 * a);
  y = (-b - sqrt(b * b - 4.0 * c * a)) / (2 * a);
  printf("%.20lf\n", max(x, y));
  printf("%.20lf\n", min(x, y));
  return 0;
}
