#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  double delta = double((b * b) - 4 * a * c);
  double x = (double)(-b - sqrt(delta)) / (2 * a);
  double y = (double)(-b + sqrt(delta)) / (2 * a);
  if (x >= y) {
    cout << fixed << setprecision(15);
    cout << x << endl << y;
  } else {
    cout << fixed << setprecision(15);
    cout << y << endl << x;
  }
}
