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