#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  double d = sqrt(b * b - 4 * a * c);
  double x, y;
  x = (-b + d) / (2 * a);
  y = (-b - d) / (2 * a);
  if (x > y) {
    cout << fixed << setprecision(6) << x << '\n' << y;
  } else {
    cout << fixed << setprecision(6) << y << '\n' << x;
  }
  return 0;
}
