#include <bits/stdc++.h>
using namespace std;
int main() {
  long double a, b, c;
  cin >> a >> b >> c;
  long double D = sqrt(b * b - 4 * a * c);
  long double x0 = 0, x1 = 0;
  if (b > 0) {
    x0 = (-b - D) / (2 * a);
    x1 = (2 * c) / (-b - D);
  } else {
    x0 = (2 * c) / (-b + D);
    x1 = (-b + D) / (2 * a);
  }
  cout << setprecision(12) << fixed << max(x0, x1) << endl
       << min(x0, x1) << endl;
  return 0;
}
